:root {
    --bg-color: #000000;
    --card-bg: rgba(20, 20, 20, 0.6);
    --card-border: rgba(10, 255, 240, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-cyan: #0afff0;
    --accent-purple: #7000ff;
    --glow-cyan: 0 0 20px rgba(10, 255, 240, 0.4);
    --glow-purple: 0 0 20px rgba(112, 0, 255, 0.4);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(112, 0, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(10, 255, 240, 0.08), transparent 25%);
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
}

/* Scroll Animations */
.reveal {
    opacity: 1;
    /* Changed from 0 to 1 for safety */
    transform: translateY(0);
    /* Reset transform */
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    /* filter: blur(10px); Removed blur */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.highlight {
    color: var(--accent-cyan);
    text-shadow: var(--glow-cyan);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.nav-links a:hover {
    color: var(--accent-cyan);
    text-shadow: var(--glow-cyan);
}

.cta-button {
    background: transparent;
    padding: 0.8rem 2rem;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan) !important;
    font-weight: 600;
    box-shadow: inset 0 0 10px rgba(10, 255, 240, 0.1);
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(10, 255, 240, 0.4), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    box-shadow: 0 0 20px rgba(10, 255, 240, 0.4), inset 0 0 20px rgba(10, 255, 240, 0.2);
    text-shadow: 0 0 5px var(--accent-cyan);
    background: rgba(10, 255, 240, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(112, 0, 255, 0.1);
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: var(--glow-purple);
    border-radius: 2px;
}

h1 {
    font-family: var(--font-heading);
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: -3px;
    text-transform: uppercase;
    position: relative;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-cyan);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-purple);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(14px, 9999px, 121px, 0);
    }

    20% {
        clip: rect(69px, 9999px, 83px, 0);
    }

    40% {
        clip: rect(26px, 9999px, 13px, 0);
    }

    60% {
        clip: rect(104px, 9999px, 107px, 0);
    }

    80% {
        clip: rect(5px, 9999px, 148px, 0);
    }

    100% {
        clip: rect(93px, 9999px, 57px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 15px, 0);
    }

    40% {
        clip: rect(98px, 9999px, 6px, 0);
    }

    60% {
        clip: rect(32px, 9999px, 55px, 0);
    }

    80% {
        clip: rect(76px, 9999px, 23px, 0);
    }

    100% {
        clip: rect(4px, 9999px, 89px, 0);
    }
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.primary-btn {
    background: var(--accent-cyan);
    color: #000;
    padding: 1rem 3rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    box-shadow: var(--glow-cyan);
    transition: all 0.3s;
}

.primary-btn:hover {
    background: #fff;
    box-shadow: 0 0 40px var(--accent-cyan);
    transform: translateY(-2px);
}

.secondary-btn {
    background: transparent;
    color: #fff;
    padding: 1rem 3rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transition: all 0.3s;
}

.secondary-btn:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    box-shadow: var(--glow-purple);
}

/* Sections */
.services,
.process,
.technology,
.contact {
    padding: 10rem 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 5rem;
    text-align: left;
    border-left: 4px solid var(--accent-cyan);
    padding-left: 2rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.line {
    display: none;
}

/* Holographic Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 450px;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(10, 255, 240, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.card:hover::before {
    transform: translateX(100%);
}

.card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(10, 255, 240, 0.1);
    transform: translateY(-10px);
}

.card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    transition: all 0.5s ease;
    filter: grayscale(100%) contrast(1.2);
    mix-blend-mode: luminosity;
}

.card:hover .card-bg-img {
    opacity: 0.5;
    transform: scale(1.1);
    filter: grayscale(0%) contrast(1.1);
}

.icon-box {
    margin-bottom: 2rem;
    color: var(--accent-cyan);
    font-size: 2rem;
    z-index: 2;
    text-shadow: var(--glow-cyan);
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    z-index: 2;
    text-transform: uppercase;
}

.card p {
    color: var(--text-secondary);
    font-size: 1rem;
    z-index: 2;
    line-height: 1.7;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step {
    background: rgba(0, 0, 0, 0.5);
    border-top: 2px solid var(--accent-purple);
    padding: 2rem;
    position: relative;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s;
}

.step:hover {
    background: rgba(112, 0, 255, 0.05);
    box-shadow: 0 0 30px rgba(112, 0, 255, 0.1);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent-purple);
    opacity: 0.5;
}

/* Supported Architectures */
.architectures {
    padding: 10rem 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.arch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.arch-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(10, 255, 240, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
}

.arch-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(10, 255, 240, 0.15);
    transform: translateY(-5px);
}

.arch-img {
    height: 250px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.arch-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: grayscale(40%) contrast(1.2);
}

.arch-card:hover .arch-img img {
    transform: scale(1.1);
    filter: grayscale(0%) contrast(1.1);
}

.arch-content {
    padding: 2.5rem;
}

.arch-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.arch-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.arch-content strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Technology - Split Layout */
.tech-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 5rem;
    overflow: hidden;
    position: relative;
}

.tech-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-purple);
    box-shadow: 0 0 20px var(--accent-purple);
}

.tech-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

/* SME Section - Redesigned */
.sme {
    position: relative;
    padding: 10rem 5%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.sme-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/sme_growth.png');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 1;
    filter: blur(3px);
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.sme-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

.sme-glass-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(10, 255, 240, 0.2);
    padding: 4rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.sme-glass-card h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(10, 255, 240, 0.3);
}

.sme-glass-card p {
    color: #ddd;
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.sme-list {
    list-style: none;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.sme-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.sme-list i {
    color: var(--accent-cyan);
    text-shadow: var(--glow-cyan);
    font-size: 1.4rem;
}

/* Contact */
.contact-box {
    background: linear-gradient(135deg, rgba(10, 255, 240, 0.05), rgba(112, 0, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6rem;
    text-align: center;
    position: relative;
}

.contact-box h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.contact-form {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 0;
}

input[type="email"] {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--accent-cyan);
    padding: 1.5rem 2rem;
    color: #fff;
    width: 400px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    border-right: none;
}

input[type="email"]:focus {
    outline: none;
    box-shadow: inset 0 0 20px rgba(10, 255, 240, 0.2);
}

button[type="submit"] {
    background: var(--accent-cyan);
    color: #000;
    padding: 1.5rem 3rem;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s;
}

button[type="submit"]:hover {
    background: #fff;
    box-shadow: 0 0 30px var(--accent-cyan);
}

/* Responsive */
@media (max-width: 1024px) {

    .cards-grid,
    .process-steps,
    .tech-container {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 4rem;
    }

    .contact-form {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    input[type="email"] {
        width: 100%;
        border-right: 1px solid var(--accent-cyan);
    }
}