:root {
    --bg-deep: #1b1d24;
    /* Refined Anthracite */
    --primary: #ff007f;
    /* Vibrant Brand Candy Pink */
    --secondary: #38bdf8;
    /* Candy Light Blue */
    --text-pure: #ffffff;
    --text-dim: #94a3b8;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-pure);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.7;
}

body.no-scroll {
    overflow: hidden;
}

/* Highly Dynamic Background Animation */
.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1f222b, #15171f);
    background-size: 300% 300%;
    animation: dynamicBG 12s infinite alternate ease-in-out;
    overflow: hidden;
    pointer-events: none;
}

@keyframes dynamicBG {
    0% {
        background-position: 0% 0%;
        filter: brightness(1);
    }

    100% {
        background-position: 100% 100%;
        filter: brightness(1.15);
    }
}

.bg-blob {
    position: absolute;
    width: 70vmin;
    height: 70vmin;
    background: radial-gradient(circle, rgba(255, 0, 127, 0.25) 0%, transparent 70%);
    filter: blur(80px);
    /* Sharper definition */
    border-radius: 50%;
    animation: drift 18s infinite alternate ease-in-out;
    /* Faster movement */
}

.bg-blob:nth-child(2) {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    width: 60vmin;
    height: 60vmin;
    animation-delay: -4s;
    animation-duration: 22s;
}

.bg-blob:nth-child(3) {
    background: radial-gradient(circle, rgba(255, 0, 127, 0.18) 0%, transparent 70%);
    width: 80vmin;
    height: 80vmin;
    animation-delay: -8s;
    animation-duration: 25s;
}

@keyframes drift {
    0% {
        transform: translate(-20%, -20%) rotate(0deg) scale(1);
    }

    100% {
        transform: translate(50%, 30%) rotate(180deg) scale(1.1);
    }
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(18, 20, 29, 0.85);
    /* Anthracite Glass */
    backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 0;
    transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    z-index: 2100;
}

.logo-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 51, 153, 0.3);
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: lowercase;
}

.logo-text span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 7px;
    z-index: 2100;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 4px;
    transition: 0.4s;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(18, 20, 29, 0.98);
    /* Anthracite Overlay */
    backdrop-filter: blur(30px);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.4s;
}

.mobile-overlay.active {
    visibility: visible;
    opacity: 1;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 2rem 0;
}

.mobile-nav-links a {
    font-size: 2rem;
    font-weight: 800;
    text-decoration: none;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: white;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 2rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Buttons & Improved 3D Tilt */
.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    perspective: 1000px;
}

.btn {
    padding: 1.1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    transform-style: preserve-3d;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ff0099);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 0, 127, 0.3);
    /* Restore pink shadow */
}

.btn-primary:hover {
    transform: translateY(-5px) rotateX(10deg);
    box-shadow: 0 20px 40px rgba(255, 0, 127, 0.5);
    filter: brightness(1.1);
}

/* Specific styling for Contact Button as requested */
.contact-form-panel .btn-primary {
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
    /* White glow shadow */
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    /* White bottom border */
}

.contact-form-panel .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary), #0ea5e9);
    /* Candy Blue hover exclusively here */
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.4);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: white;
    background: var(--glass);
}

.btn-outline:hover {
    transform: translateY(-5px) rotateX(-10deg);
    background: rgba(255, 255, 255, 0.08);
}

/* Interactive Cards - Transition to JS Tilt */
.usp-section {
    padding: 8rem 0;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.interactive-card {
    padding: 3.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, background 0.3s;
    cursor: pointer;
}

.interactive-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: 0.4s;
}

.interactive-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.interactive-card:hover::before {
    opacity: 0.8;
}

.icon-sphere {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 77, 148, 0.2), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 77, 148, 0.15);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.icon-sphere.purple {
    background: linear-gradient(135deg, rgba(255, 77, 148, 0.25), transparent);
    border-color: rgba(255, 77, 148, 0.2);
}

.icon-sphere.blue {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), transparent);
    border-color: rgba(56, 189, 248, 0.2);
}

.interactive-card:hover .icon-sphere {
    box-shadow: 0 15px 30px rgba(255, 77, 148, 0.25);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.step-number {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3.5rem;
    font-weight: 900;
    opacity: 0.25;
    /* Increased opacity for better visibility */
    color: var(--primary);
    transition: 0.3s;
    line-height: 1;
}

.interactive-card:hover .step-number {
    opacity: 0.55;
    /* Even more visible on hover */
    transform: scale(1.1) translateY(-5px);
}

.services {
    padding: 10rem 0;
}

.section-header-centered {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header-centered h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
}

.service-list {
    list-style: none;
    margin: 2rem 0;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.service-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.service-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.service-cta {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: 0.3s;
}

.service-cta:hover {
    gap: 0.8rem;
    color: var(--primary);
}

.services-3d-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.card-glass {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3rem;
    backdrop-filter: blur(40px);
    transition: 0.4s;
}

.floating-card {
    perspective: 1000px;
}

.floating-card:hover .card-glass {
    transform: rotateX(8deg) translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
}

/* Pricing & More */
.pricing {
    padding: 8rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 28px;
    transition: 0.3s;
    text-align: center;
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.faq {
    padding: 8rem 0;
}

details {
    background: var(--glass);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
}

summary {
    font-weight: 700;
    cursor: pointer;
}

/* Contact Panel */
.contact {
    padding: 8rem 0;
}

.contact-card-wrapper {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    overflow: hidden;
    align-items: center;
}

.contact-info-panel {
    padding: 4rem;
    background: rgba(255, 255, 255, 0.01);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-panel {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input,
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 10px;
    color: white;
    font-family: inherit;
}

/* Footer */
.footer {
    padding: 5rem 0;
    background: #0d0f16;
    /* Darker Anthracite for Footer */
    border-top: 1px solid var(--glass-border);
}

.footer-content-fixed {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.copyright-year {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-dim);
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Company Details Styling */
.company-details {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.detail-value {
    font-size: 1.1rem;
    color: white;
    font-weight: 400;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-left: 1.5rem;
    padding: 0.2rem 0 0.2rem 1.5rem;
    border-left: 1px solid var(--glass-border);
}

.footer-credit {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Email Hover Effects */
.email-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.email-link:hover {
    color: var(--secondary);
    /* Candy Blue on hover */
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.footer-email-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: 0.3s;
}

.footer-email-link:hover {
    color: var(--secondary);
    opacity: 1;
}

.footer-addr {
    font-size: 0.8rem;
    color: var(--text-dim);
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Mobile Transparent Header Logic */
    .glass-nav {
        background: transparent !important;
        backdrop-filter: none !important;
        border-color: transparent !important;
        padding: 2rem 0;
    }

    .glass-nav.scrolled {
        background: rgba(18, 20, 29, 0.9) !important;
        backdrop-filter: blur(20px) !important;
        border-color: var(--glass-border) !important;
        padding: 1rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .usp-grid,
    .pricing-grid,
    .contact-card-wrapper,
    .process-grid,
    .services-3d-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-panel {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 3rem 1.5rem;
        text-align: center;
    }

    .contact-form-panel {
        padding: 3rem 1.5rem;
        text-align: center;
        align-items: center;
    }

    .footer-content-fixed {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .footer-logo-container {
        flex-direction: column;
    }

    .footer-legal {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    .mesh-bg {
        animation: dynamicBG 8s infinite alternate ease-in-out;
        /* Faster on mobile */
    }

    .bg-blob {
        filter: blur(40px);
        opacity: 0.85;
        width: 120vw;
        height: 120vw;
        animation: drift-mobile 12s infinite alternate ease-in-out;
    }

    @keyframes drift-mobile {
        0% {
            transform: translate(-30%, -20%) scale(1);
        }

        100% {
            transform: translate(20%, 30%) scale(1.2);
        }
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .interactive-card,
    .card-glass {
        padding: 2rem 1.5rem;
    }

    .step-number {
        top: 1rem;
        right: 1.5rem;
        font-size: 2rem;
    }

    .icon-sphere {
        margin-bottom: 1.5rem;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 2.5rem 1rem;
    }

    .company-details,
    .detail-item {
        align-items: center;
    }

    input,
    textarea,
    .contact-form-panel .btn {
        width: 100%;
        max-width: 100%;
    }
}

/* Form Status */
.form-status {
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.form-status.success {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
}

.form-status.error {
    color: #f87171;
    text-shadow: 0 0 10px rgba(248, 113, 113, 0.2);
}