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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    min-height: 100vh;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
    color: white;
    padding: 60px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Logo Styling */
.logo-container {
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Buttons */
.btn-primary {
    background-color: white;
    color: #dc143c;
    border: none;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 2px solid #dc143c;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    margin-top: 15px;
}

.btn-secondary:hover {
    background-color: #dc143c;
    color: white;
}

/* Design Section */
.design-section {
    padding: 60px 20px;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    color: #dc143c;
    font-weight: 700;
    margin-bottom: 50px;
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.design-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.design-card:hover {
    transform: translateY(-10px);
}

.design-preview {
    width: 100%;
    height: auto;
    display: block;
}

.btn-select {
    width: 100%;
    background-color: #dc143c;
    color: white;
    border: none;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-select:hover {
    background-color: #8b0000;
}

/* Input Section */
.input-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
}

.input-group {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.input-group label {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 18px 25px;
    font-size: 1.1rem;
    border: 3px solid #dc143c;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #8b0000;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.3);
}

/* Result Section */
.result-section {
    padding: 60px 20px;
    background: white;
}

.congrats-title {
    font-size: 3rem;
    color: #dc143c;
    font-weight: 700;
    margin-bottom: 20px;
}

.congrats-text {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 40px;
}

.preview-container {
    max-width: 600px;
    margin: 0 auto 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#previewCanvas {
    width: 100%;
    height: auto;
    display: block;
}

.btn-download {
    background: linear-gradient(135deg, #00bfff 0%, #1e90ff 100%);
    color: white;
    border: none;
    padding: 20px 60px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .logo {
        width: 140px;
    }
    
    .logo-container {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .design-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .btn-primary {
        padding: 15px 40px;
        font-size: 1rem;
    }
    
    .congrats-title {
        font-size: 2.2rem;
    }
}
