/* Global Reset */
:root {
    --bg-dark: #020202;
    /* Darker black */
    --bg-card: rgba(15, 15, 15, 0.4);
    --bg-card-hover: rgba(0, 255, 0, 0.05);
    --primary-color: #39ff14;
    /* Neon Green */
    --primary-glow: rgba(57, 255, 20, 0.6);
    --secondary-glow: rgba(0, 200, 255, 0.4);
    /* Cyan/Blue contrast */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border-color: rgba(255, 255, 255, 0.05);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor for custom one */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Scanline Texture Overlay */
    background-image: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 2px 100%;
}

/* Custom Cursor Glow */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.15) 0%, rgba(0, 0, 0, 0) 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
}

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

/* Particles Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Cyber Grid Background */
.cyber-grid {
    position: absolute;
    bottom: -20vh;
    left: 0;
    width: 100%;
    height: 60vh;
    background:
        linear-gradient(transparent 0%, #050505 100%),
        repeating-linear-gradient(0deg, transparent 0, transparent 49px, rgba(255, 85, 0, 0.1) 50px),
        repeating-linear-gradient(90deg, transparent 0, transparent 49px, rgba(255, 85, 0, 0.1) 50px);
    transform: perspective(500px) rotateX(60deg);
    z-index: -2;
    mask-image: linear-gradient(to top, black 0%, transparent 100%);
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 500px;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
    cursor: none;
    /* Keep custom cursor */
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(2, 2, 2, 0.85);
    backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: white;
    text-shadow: 0 0 20px rgba(255, 85, 0, 0.5);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-101%);
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-links a:hover::after {
    transform: translateX(0);
}

.nav-btn {
    background-color: transparent;
    color: white !important;
    padding: 10px 24px;
    border-radius: 4px;
    border: 1px solid var(--primary-color);
    font-weight: 700 !important;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(255, 85, 0, 0.2);
}

.nav-btn:hover {
    background-color: var(--primary-color);
    color: black !important;
    box-shadow: 0 0 20px rgba(255, 85, 0, 0.6);
}

.mobile-menu-btn {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: none;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
    margin: 20px 0;
    font-weight: 700;
}

.mobile-link:hover {
    color: var(--primary-color);
}

.close-menu-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 100px 20px 50px;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 25px;
    color: white;
    position: relative;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.hero h1 .highlight {
    color: transparent;
    -webkit-text-stroke: 2px var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero h1 .highlight::before {
    content: attr(data-text);
    /* Requires data-text in HTML */
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    color: var(--primary-color);
    -webkit-text-stroke: 0px transparent;
    overflow: hidden;
    white-space: nowrap;
    animation: highlightFill 2s cubic-bezier(0.19, 1, 0.22, 1) forwards 0.5s;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

@keyframes highlightFill {
    to {
        width: 100%;
    }
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
    text-align: left;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 16px 40px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
    /* Cyber shape */
    transition: 0.3s;
}

.cta-btn.primary {
    background-color: var(--primary-color);
    color: black;
    box-shadow: 0 0 30px rgba(255, 85, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.cta-btn.primary:hover {
    background-color: white;
    box-shadow: 0 0 50px rgba(255, 85, 0, 0.8);
    transform: translateY(-5px);
}

.cta-btn.secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-btn.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 85, 0, 0.05);
    box-shadow: 0 0 20px rgba(255, 85, 0, 0.2);
}

.trust-badges {
    display: flex;
    gap: 25px;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
    font-family: 'Space Grotesk', monospace;
    opacity: 0.8;
}

.trust-badges i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    padding: 0 20px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Cyber Card */
.feature-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    /* Sharper corners */
    padding: 30px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: 0.3s ease;
}

/* Neon Border on Card */
.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    background: linear-gradient(45deg, var(--primary-color), transparent, var(--secondary-glow)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
}

.feature-card:hover {
    background-color: rgba(22, 22, 22, 0.9);
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.feature-card:hover::after {
    opacity: 1;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: 0.3s;
}

.feature-card:hover .icon-box {
    background: var(--primary-color);
    color: black !important;
    box-shadow: 0 0 20px var(--primary-glow);
    border-color: transparent;
    transform: rotateY(180deg);
}

.feature-card:hover .icon-box i {
    transform: rotateY(-180deg);
    /* Counter rotate icon */
    transition: 0.3s;
}

.icon-box.red {
    color: #ff3b30;
}

.icon-box.blue {
    color: #007aff;
}

.icon-box.orange {
    color: #ff9500;
}

.icon-box.green {
    color: #34c759;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.feature-card .description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    min-height: 44px;
    font-weight: 300;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #e4e4e7;
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-list li i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 0.7rem;
    text-shadow: 0 0 5px var(--primary-color);
}

/* About Section */
.about-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-dark) 0%, #050505 100%);
    position: relative;
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 25px;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.about-content strong {
    color: white;
}

/* About Image Container & Preview */
.about-image-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.cli-preview-img {
    width: 100%;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    transform: rotateY(-8deg) rotateX(5deg);
    transition: all 0.5s ease;
    filter: brightness(0.8) contrast(1.2);
}

.cli-preview-img:hover {
    transform: rotateY(0) rotateX(0) scale(1.05);
    /* Zoom in */
    box-shadow: 0 0 50px rgba(255, 85, 0, 0.2);
    filter: brightness(1) contrast(1);
    border-color: var(--primary-color);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background: #000;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.social-links a {
    color: white;
    font-size: 1.4rem;
    transition: 0.3s;
    opacity: 0.6;
}

.social-links a:hover {
    color: var(--primary-color);
    opacity: 1;
    text-shadow: 0 0 10px var(--primary-color);
    transform: translateY(-5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    * {
        cursor: auto;
    }

    /* Restore default cursor on mobile */
    #custom-cursor,
    #cursor-glow {
        display: none;
    }

    /* Hide customs on mobile */

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        border-left: none;
        padding-left: 0;
        text-align: center;
        background: none;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-btn {
        width: 100%;
    }

    .cli-preview-img {
        transform: none;
        margin-top: 20px;
        max-width: 100%;
        filter: none;
    }
}