@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #ff00ff;
    --secondary-color: #00ffff;
    --accent-color: #ff8c00;
    --background-color: #1a0033;
    --text-color: #f0f0f0;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    position: relative;
    background-color: rgba(26, 0, 51, 0.8);
    padding: 20px 0;
    overflow: hidden;
}

#background-shader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--accent-color);
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.home-section {
    padding: 60px 0;
}

.welcome-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.welcome-card h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--background-color);
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 255, 255, 0.3);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--secondary-color);
    text-shadow: 0 0 15px var(--secondary-color);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tool-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--secondary-color);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

.tool-card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    fill: var(--accent-color);
}

.tool-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.tool-card p {
    margin-bottom: 20px;
}

.tool-link {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--background-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tool-link:hover {
    background-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
}

footer {
    background-color: rgba(26, 0, 51, 0.8);
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--secondary-color);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 20px;
    }

    nav ul li {
        margin: 0 10px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }
}

.paint-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: linear-gradient(135deg, #1a0033, #4a0080);
}

.toolbar {
    background-color: rgba(255, 0, 255, 0.2);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.toolbar button {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--background-color);
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px var(--secondary-color);
}

.toolbar button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 20px var(--accent-color);
}

.toolbar button:disabled {
    background-color: #4d4d4d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.main-content {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

.canvas-container {
    flex-grow: 1;
    overflow: auto;
    position: relative;
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.2);
}

#mainCanvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
}

.sidebar {
    width: 280px;
    background-color: rgba(0, 255, 255, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    border-left: 2px solid var(--secondary-color);
}

.tool-section {
    background-color: rgba(255, 0, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

.tool-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--secondary-color);
}

.tool-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.tool {
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--accent-color);
}

.tool:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 20px var(--accent-color);
}

.tool.active {
    background-color: var(--secondary-color);
    color: var(--background-color);
    box-shadow: 0 0 20px var(--secondary-color);
}

#sizeSlider {
    width: 100%;
    -webkit-appearance: none;
    height: 10px;
    border-radius: 5px;
    background: var(--accent-color);
    outline: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}

#sizeSlider:hover {
    opacity: 1;
}

#sizeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
    box-shadow: 0 0 10px var(--secondary-color);
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.color {
    width: 50px;
    height: 50px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.color:hover {
    transform: scale(1.1) rotate(15deg);
}

.color.active {
    box-shadow: 0 0 20px var(--accent-color);
}

#colorPicker {
    width: 100%;
    height: 50px;
    margin-top: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: linear-gradient(to right, #ff00ff, #00ffff, #ff8c00);
}

.layers {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.layer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: rgba(255, 140, 0, 0.2);
    margin-bottom: 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-color);
}

.layer:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.5);
}

.layer.active {
    background-color: rgba(0, 255, 255, 0.3);
    color: var(--text-color);
    border-color: var(--secondary-color);
}

.console-output {
    height: 1.5in;
    background-color: rgba(45, 45, 45, 0.8);
    color: #00ff00;
    font-family: 'Courier New', monospace;
    padding: 15px;
    overflow-y: auto;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.3);
}

.console-output p {
    margin: 0;
    padding: 3px 0;
    text-shadow: 0 0 5px #00ff00;
}

.console-output .error {
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
}

.console-output .info {
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}