body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #0f172a;
    color: white;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: rgba(0,0,0,0.7);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar nav a {
    margin: 0 10px;
    color: rgb(92, 57, 187);
    text-decoration: none;
    transition: 0.3s;
}

.navbar nav a:hover {
    color: white;
    transform: scale(1.1);
}

.hero {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-overlay {
    position: absolute;
    top: 40%;
    width: 100%;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.card {
    margin: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    transition: 0.3s;
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px rgba(57, 48, 179, 0.2);
}

.flex {
    display: flex;
    gap: 20px;
    align-items: center;
}

.text {
    flex: 2;
}

.small-image img {
    width: 400px;
    border-radius: 10px;
    transition: 0.3s;
}

.hover-img img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgb(58, 33, 150);
}

button {
    padding: 10px 20px;
    background: rgb(87, 44, 156);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgb(87, 44, 156);
}

#preview {
    max-width: 300px;
    display: none;
    margin-top: 10px;
    border-radius: 10px;
}

#result {
    color: rgb(87, 44, 156);
}

.image-container {
    position: relative;
    display: inline-block;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}