:root {
    --bg-light: #ffffff;
    --bg-alt: #f8f8f8;
    --bg-premium-soft: #fbf9ff;
    /* Subtle energetic tint */
    --bg-card: #fdfdfd;
    --accent-purple: #9333ea;
    --accent-vivid: #d946ef;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --transition: cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grit Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

/* Custom Cursor */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--accent-purple);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

/* Typo */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 800;
    line-height: 0.95;
    text-align: center;
    /* Global centering */
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: -2px;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -1px;
    margin-bottom: 2rem;
}

.outline-text {
    -webkit-text-stroke: 1.5px var(--accent-purple);
    color: transparent;
    filter: drop-shadow(0 4px 10px rgba(124, 58, 237, 0.1));
}

.accent-purple {
    color: var(--accent-purple);
    text-shadow: 0 0 20px rgba(130, 87, 229, 0.4);
}

.accent-green {
    color: var(--accent-green);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

.accent-red {
    color: var(--accent-red);
    text-shadow: 0 0 20px rgba(255, 62, 62, 0.4);
}

/* Layout Utilities */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-tight {
    padding: 60px 0;
    position: relative;
}

.dark-bg {
    background-color: var(--bg-alt);
}

.bg-premium-soft {
    background-color: var(--bg-premium-soft);
    border-top: 1px solid rgba(147, 51, 234, 0.05);
    border-bottom: 1px solid rgba(147, 51, 234, 0.05);
}

.section-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

@media (max-width: 968px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(130, 87, 229, 0.1);
}

#logo-img {
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(130, 87, 229, 0.3));
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-purple);
    transition: var(--transition);
}

.nav-links a.active {
    color: var(--accent-purple);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-purple);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-purple);
    color: white;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    background: var(--text-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.2);
}

.btn-nav {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.1);
    font-size: 0.8rem;
    color: var(--text-primary);
}

.btn-nav:hover {
    border-color: var(--accent-purple);
    background: var(--accent-purple);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

@media (max-width: 1100px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 999;
        transition: 0.8s var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .header-right {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(4px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        transform: translateY(-4px) rotate(-45deg);
    }
}

/* Services Page Specifics */
.services-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.feature-list svg {
    flex-shrink: 0;
}

.order-mobile-2 {
    order: 0;
}

@media (max-width: 968px) {
    .order-mobile-2 {
        order: 2;
    }
}

.services-list-grid .service-item-mini {
    transition: var(--transition);
    border-left: 3px solid var(--accent-purple);
    padding: 2rem;
    background: #1a1a1a;
    /* Darker background for contrast */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.services-list-grid .service-item-mini h4 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.services-list-grid .service-item-mini p {
    color: #a1a1aa;
    /* High contrast gray */
    font-size: 0.95rem;
    line-height: 1.5;
}

.services-list-grid .service-item-mini:hover {
    background: #252525 !important;
    transform: translateY(-5px);
    border-left-color: var(--accent-vivid);
}

/* Services Page Refinements */
.services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-category-card {
    transition: var(--transition);
}

.service-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(147, 51, 234, 0.08) !important;
}

.sub-services li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-primary);
}

.sub-services li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-vivid);
    font-weight: 900;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
}

.process-step {
    padding: 2rem;
    background: transparent;
    transition: var(--transition);
}

.process-step:hover {
    transform: scale(1.05);
}

.check-list li {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.cta-actions .btn {
    min-width: 200px;
}

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
}

.hero-grid {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-text {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-text h1 {
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-vivid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 1px rgba(147, 51, 234, 0.3));
    animation: floatText 4s ease-in-out infinite;
}

.hero-text .outline-text {
    -webkit-text-stroke: 2.5px var(--accent-purple);
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 15px 30px rgba(147, 51, 234, 0.4));
    position: relative;
}

@keyframes floatText {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 700;
    /* Bolder */
    max-width: 850px;
    margin: 2rem 0;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5);
    /* Glow to fight against the bg */
}

.hero-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
    filter: drop-shadow(0 15px 30px rgba(124, 58, 237, 0.3));
}

.hero-bg-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}


.grid-lines {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(130, 87, 229, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130, 87, 229, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    transform: perspective(1000px) rotateX(60deg) translateY(-500px);
    mask-image: linear-gradient(to top, black, transparent);
    opacity: 0.5;
}

.glow-sphere {
    position: absolute;
    top: 50%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(130, 87, 229, 0.2) 0%, transparent 70%);
    filter: blur(80px);
}

/* Problem/Solution Sections */
.img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.img-wrapper img {
    width: 100%;
    display: block;
    filter: grayscale(1);
    transition: 0.6s ease;
}

.img-wrapper:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

/* Different Section Improvements */
#different h2 {
    font-weight: 900;
    margin-bottom: 2rem;
}

#different p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.impact-text {
    position: relative;
    padding-left: 1.5rem;
    border-left: 4px solid var(--accent-vivid);
}

#solution .grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
}

#solution .solution-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

#solution p {
    max-width: 700px;
}

.solution-highlights {
    display: flex;
    gap: 4rem;
    justify-content: center;
    width: 100%;
}

.beast-wrapper {
    position: relative;
    padding: 2rem;
    max-width: 600px;
    margin: 4rem auto 0;
}

.beast-wrapper img {
    width: 100%;
    position: relative;
    z-index: 2;
}

.energy-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    animation: rotateEnergy 20s linear infinite;
}

@keyframes rotateEnergy {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.stat {
    margin-top: 3rem;
}

.stat .val {
    display: block;
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    color: var(--accent-green);
}

.stat .lab {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

/* Form */
.form-container {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px);
    padding: 6rem;
    border-radius: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
}

.form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(130, 87, 229, 0.05) 0%, transparent 50%);
    animation: flowGlow 15s linear infinite;
    pointer-events: none;
}

@keyframes flowGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.form-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1rem auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 3rem 1.5rem;
    }
}

.input-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
    color: var(--text-primary);
    font-family: inherit;
    border-radius: 12px;
    transition: 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: white;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.1);
}

.btn-submit {
    width: 100%;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.faq-item {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--accent-purple);
    background: rgba(130, 87, 229, 0.05);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent-purple);
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: 100px 0 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-socials a:hover {
    color: var(--accent-purple);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-wrap {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Scroll reveal helpers */
.reveal,
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-delay-1,
.reveal-delay-2,
.reveal-delay-3 {
    opacity: 0;
    transition: var(--transition);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
    transform: translateY(30px);
}

.reveal-delay-2 {
    transition-delay: 0.2s;
    transform: translateY(30px);
}

.reveal-delay-3 {
    transition-delay: 0.3s;
    transform: translateY(30px);
}

.active {
    opacity: 1;
    transform: translate(0);
}