:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-primary: #00f3ff;
    --accent-secondary: #bd00ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    scroll-padding-top: 120px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

/* Background Effects */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) scale(2);
    opacity: 0.2;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    overflow: hidden;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) scale(2); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px) scale(2); }
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 40%, #000 100%);
    z-index: -1;
    pointer-events: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001; /* Above hamburger on very small screens if they overlap, but mostly for structure */
    margin-right: 2rem;
    flex-shrink: 0;
}

.logo {
    height: 40px;
    width: auto;
}

.brand-name {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

.nav-links a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    position: relative;
    font-family: var(--font-code);
}

.glitch {
    position: relative;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-secondary);
    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-primary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 30px, 0); }
    20% { clip: rect(80px, 9999px, 100px, 0); }
    40% { clip: rect(30px, 9999px, 60px, 0); }
    60% { clip: rect(60px, 9999px, 90px, 0); }
    80% { clip: rect(110px, 9999px, 130px, 0); }
    100% { clip: rect(40px, 9999px, 70px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(60px, 9999px, 90px, 0); }
    20% { clip: rect(10px, 9999px, 40px, 0); }
    40% { clip: rect(90px, 9999px, 120px, 0); }
    60% { clip: rect(30px, 9999px, 50px, 0); }
    80% { clip: rect(120px, 9999px, 150px, 0); }
    100% { clip: rect(70px, 9999px, 100px, 0); }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.description {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.primary-btn:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 20px var(--accent-primary);
}

.secondary-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* 3D Visual */
.hero-visual {
    perspective: 1000px;
    z-index: 1;
}

.shield-3d {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s;
}

.shield-inner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    position: relative;
}

.shield-inner img {
    width: 80%;
    filter: drop-shadow(0 0 20px var(--accent-primary));
    transform: translateZ(50px);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Features Grid */
.features {
    padding: 5rem 10%;
    position: relative;
}

.section-title {
    font-family: var(--font-code);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #fff;
    text-transform: uppercase;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s, border-color 0.3s;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

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

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transform: translateZ(20px);
    color: var(--accent-primary);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--accent-primary);
    transform: translateZ(30px);
}

.card p {
    color: #aaa;
    font-size: 0.95rem;
    transform: translateZ(20px);
}

/* Tech Stack */
.tech-stack {
    padding: 5rem 10%;
}

.tech-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tech-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 8px;
    position: relative;
}

.tech-label {
    display: block;
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.tech-value {
    display: block;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tech-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

/* Install Section */
.install {
    padding: 5rem 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.code-wrapper {
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.code-header {
    background: #111;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #333;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.filename {
    margin-left: 10px;
    color: #888;
    font-family: var(--font-code);
    font-size: 0.8rem;
}

pre {
    padding: 20px;
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-all;
}

code {
    font-family: var(--font-code);
    color: #a9b7c6;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    background: #020202;
    padding: 4rem 10% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand img {
    height: 30px;
}

.footer-brand p {
    color: #fff;
    font-weight: 700;
    transition: color 0.3s, text-shadow 0.3s;
}

.github-footer-link {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.github-footer-link:hover {
    color: var(--accent-primary);
}

.github-footer-link:hover p {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

.footer-links h4, .footer-support h4 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    color: #555;
    font-size: 0.8rem;
    padding-top: 2rem;
    border-top: 1px solid #111;
}

/* Responsive */
@media (max-width: 1024px) {
    .container-limit {
        padding: 0 1.25rem;
    }

    .navbar {
        padding: 0.85rem 0;
        flex-direction: row;
    }

    .navbar-content {
        justify-content: space-between;
        align-items: center;
    }

    .logo-container {
        margin-right: 0;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        z-index: 1000;
        border-left: 1px solid var(--glass-border);
        box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    }

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.1rem;
        margin: 0.85rem 0;
    }

    .hero {
        min-height: auto;
        padding: 130px 0 2.5rem;
        text-align: center;
        gap: 2.5rem;
    }

    .hero .container-limit {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-visual {
        order: -1;
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 2.5rem;
    }

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

    .cta-group {
        justify-content: center;
        flex-wrap: wrap;
    }

    .features, .tech-stack, .install {
        padding: 3rem 0;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container-limit {
        padding: 0 1rem;
    }

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

    .subtitle {
        font-size: 1.15rem;
    }

    .description {
        font-size: 0.95rem;
    }

    .shield-3d {
        width: 220px;
        height: 220px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.82rem;
        width: 100%;
        text-align: center;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .card {
        padding: 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2.5rem;
    }

    .comparison-table-wrapper {
        max-width: 100%;
        margin: 1.5rem 0;
    }
}

/* Comparison Table */
.comparison-table-wrapper {
    margin: 2rem 0;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.comparison-table th {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.comparison-table td {
    font-size: 0.95rem;
}

.comparison-table tr:last-child td {
    border-bottom: none !important;
}

/* Audience Grid - specific overrides */
.audience-grid .card {
    transition: all 0.3s ease;
}

.audience-grid .card:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Responsive adjustments for table */
@media (max-width: 600px) {
    .comparison-table th, .comparison-table td {
        padding: 0.75rem !important;
        font-size: 0.8rem !important;
    }
}

/* Refactored Layout Styles */
.content-section {
    margin-top: 8rem;
}

.about-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .content-section {
        margin-top: 5.5rem;
    }
    .about-content {
        padding: 1.5rem;
    }
}
