/*
  DIGITAL NEXUS THEME
  Table of Contents
  1.  Global Styles & Variables
  2.  Keyframe Animations
  3.  Base Layout & Typography
  4.  Cursor Styles
  5.  Header & Navigation
  6.  Footer
  7.  Buttons & Forms
  8.  Hero Section & Canvas
  9.  Services Section
  10. Stats Counter Section
  11. Process Tabs Section
  12. Testimonials Carousel
  13. CTA Section
  14. Inner Page & Legal Styles
  15. Utility & Helper Classes
  16. Media Queries (Responsiveness)
*/

/* 1. Global Styles & Variables */
:root {
    --dark-bg: #0C071C;
    --primary-color: #B400FF;
    --secondary-color: #00C8FF;
    --accent-bg: #161232;
    --border-color: rgba(180, 0, 255, 0.25);
    --light-text: #D6CFFF;
    --primary-text: #FFFFFF;

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;

    --header-height: 80px;
    --border-radius: 10px;
    --shadow: 0 12px 45px rgba(180, 0, 255, 0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}



*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* 2. Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glitch {

    0%,
    100% {
        clip-path: inset(50% 0 51% 0);
    }

    20% {
        clip-path: inset(80% 0 1% 0);
    }

    40% {
        clip-path: inset(2% 0 50% 0);
    }

    60% {
        clip-path: inset(90% 0 5% 0);
    }

    80% {
        clip-path: inset(45% 0 45% 0);
    }
}

@keyframes border-glow {
    0% {
        box-shadow: 0 0 5px var(--primary-color);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--secondary-color);
    }

    100% {
        box-shadow: 0 0 5px var(--primary-color);
    }
}

/* 3. Base Layout & Typography */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 120px 0;
    position: relative;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-text);
    text-transform: uppercase;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-text);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tagline {
    display: block;
    color: var(--primary-color);
    font-family: var(--font-body);
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

/* 4. Cursor Styles */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
    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);
    transition: all 0.08s ease-out;
}

body:hover .cursor-dot,
body:hover .cursor-outline {
    opacity: 1;
}

/* 5. Header & Navigation */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(10, 11, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: padding 0.3s ease;
}

.site-header.scrolled {
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 130px;
    height: auto;
    filter: brightness(1)
    invert(1);
}

.logo:hover {
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--light-text);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-text);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-text);
    margin: 5px 0;
    transition: all 0.3s;
}

body.nav-open .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.nav-open .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
}

body.nav-open .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* 6. Footer */
.site-footer {
    background: #060714;
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a,
.footer-col p {
    font-size: 0.9rem;
    color: var(--light-text);
}

.footer-col a:hover {
    color: var(--primary-text);
}

.footer-tagline {
    margin-top: 15px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-links a {
    width: 35px;
    height: 35px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    color: var(--light-text);
    font-family: var(--font-heading);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 25px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--light-text);
}

/* 7. Buttons & Forms */
.btn {
    padding: 12px 30px;
    border: 1px solid var(--primary-color);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transition: width 0.4s;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: transparent;
    color: var(--primary-color);
}

.btn-primary:hover {
    color: var(--dark-bg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-text);
    border-color: var(--primary-text);
}

.btn-secondary:hover {
    color: var(--dark-bg);
}

.btn-secondary::before {
    background: var(--primary-text);
}

.header-cta {
    font-size: 0.8rem;
    padding: 10px 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--accent-bg);
    border: 1px solid var(--border-color);
    padding: 12px;
    color: var(--primary-text);
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

/* 8. Hero Section & Canvas */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    overflow: hidden;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary-color);
    animation: glitch 2s infinite linear reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary-color);
    animation: glitch 2.5s infinite linear;
}

.fade-in-up {
    animation: fadeInUp 0.8s 0.5s both;
}

.hero-buttons.fade-in-up {
    animation-delay: 0.8s;
}

/* 9. Services Section */
.services-section {
    background-color: var(--accent-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 20px var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--accent-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
}

/* 10. Stats Counter Section */
.stats-section {
    background: linear-gradient(rgba(10, 11, 26, 0.9), rgba(10, 11, 26, 0.9)), url('https://www.transparenttextures.com/patterns/cubes.png');
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
}

.stat-item p {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-text);
}

/* 11. Process Tabs Section */
.process-tabs {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.tab-triggers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.tab-trigger {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--light-text);
    padding: 15px 30px;
    font-family: var(--font-heading);
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.tab-trigger.active {
    background: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--primary-color);
}

.tab-content-wrapper {
    position: relative;
    min-height: 200px;
    flex-grow: 1;
}

.tab-content {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.tab-content.active {
    opacity: 1;
    pointer-events: auto;
}

.tab-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* 12. Testimonials Carousel */
.testimonials-section {
    background-color: var(--accent-bg);
}

.testimonial-carousel-wrapper {
    position: relative;
    perspective: 1500px;
    height: 250px;
}

.testimonial-carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.testimonial-card {
    position: absolute;
    width: 70%;
    height: 100%;
    left: 15%;
    top: 0;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backface-visibility: hidden;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.author {
    text-align: right;
}

.author h4 {
    color: var(--primary-color);
    font-size: 1rem;
}

.author span {
    font-size: 0.9rem;
}

.carousel-nav {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.prev-btn,
.next-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--light-text);
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.prev-btn:hover,
.next-btn:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* 13. CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.cta-section h2,
.cta-section p {
    color: var(--dark-bg);
}

.cta-section h2 {
    font-size: 2.8rem;
}

.cta-section p {
    max-width: 600px;
    margin: 20px auto 40px;
}

.cta-section .btn-primary {
    background: var(--dark-bg);
    border-color: var(--dark-bg);
    color: var(--primary-text);
}

.cta-section .btn-primary::before {
    background: var(--primary-text);
}

.cta-section .btn-primary:hover {
    color: var(--dark-bg);
}

/* 14. Inner Page & Legal Styles */
.page-header-section {
    padding: 180px 0 100px;
    text-align: center;
    background: var(--accent-bg);
}

.page-header-section h1 {
    font-size: 3.5rem;
}

.contact-page-section,
.legal-content-section {
    padding: 100px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.info-block {
    margin-bottom: 30px;
    border-left: 2px solid var(--primary-color);
    padding-left: 20px;
}

.info-block h4 {
    color: var(--primary-color);
}

.legal-content-section h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-content-section li {
    margin-bottom: 10px;
}


/* 15. Utility & Helper Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 16. Media Queries (Responsiveness) */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .process-tabs {
        flex-direction: column;
    }

    .tab-triggers {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--dark-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        display: flex;
        transition: right 0.5s ease-in-out;
    }

    body.nav-open .main-nav {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .mobile-nav-toggle {
        display: block;
        z-index: 1001;
    }

    .header-cta {
        display: none;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-card {
        width: 90%;
        left: 5%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}