:root {
    --color-bg-dark: #0a0a12;
    --color-bg-card: rgba(20, 20, 30, 0.6);
    --color-neon-cyan: #00f3ff;
    --color-neon-blue: #0066ff;
    --color-text-main: #ffffff;
    --color-text-muted: #a0a0b0;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glow-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    --font-main: 'Inter', sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-neon-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-neon-blue);
    text-shadow: 0 0 8px var(--color-neon-blue);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-shadow), var(--glass-shadow);
    border-color: rgba(0, 243, 255, 0.3);
}

.glass-header {
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

/* Header Styles */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: var(--color-text-muted);
    font-weight: 500;
}

.main-navigation a:hover {
    color: var(--color-neon-cyan);
}

/* Footer Styles */
.site-footer {
    padding: 3rem 0;
    border-top: var(--glass-border);
    margin-top: 4rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-main);
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation ul {
        display: none;
        /* JS to toggle */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-dark);
        padding: 1rem;
        border-bottom: var(--glass-border);
    }

    .main-navigation.toggled ul {
        display: flex;
    }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 6rem 0 4rem;
    background: radial-gradient(circle at center, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.neon-text {
    color: var(--color-neon-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

/* Search Bar */
.hero-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-form {
    display: flex;
    gap: 1rem;
}

.glass-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: var(--color-text-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.neon-button {
    background: transparent;
    border: 1px solid var(--color-neon-cyan);
    color: var(--color-neon-cyan);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.neon-button:hover {
    background: var(--color-neon-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
}

/* Tools Grid */
.tools-grid-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.tool-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Tool Page Interface */
.tool-page-main {
    padding: 4rem 0;
}

.tool-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tool-interface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.tool-panel {
    display: flex;
    flex-direction: column;
    height: 600px;
}

.panel-title {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--color-neon-cyan);
}

.code-input,
.output-display {
    flex-grow: 1;
    width: 100%;
    resize: none;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 1rem;
}

.output-display {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.panel-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.primary-action {
    background: rgba(0, 243, 255, 0.1);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .tool-interface {
        grid-template-columns: 1fr;
        height: auto;
    }

    .tool-panel {
        height: 500px;
    }
}