* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

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

/* Навигация */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #4a6cf7;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4a6cf7;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Херо секция */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: 60px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: #4a6cf7;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: #3a5ce5;
    transform: translateY(-2px);
}

/* Секция за създаване */
.creation-section {
    padding: 80px 0;
    background-color: #fff;
}

.creation-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1e266d;
}

.creation-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.phone-preview {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: 20px;
    background: #f5f7ff;
    border-radius: 20px;
}

.phone-frame {
    position: relative;
    width: 100%;
    padding-bottom: 200%;
    background-color: #1e266d;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.phone-screen {
    position: absolute;
    top: 3%;
    left: 3%;
    width: 94%;
    height: 94%;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
}

.custom-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.default-screen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    font-size: 18px;
    text-align: center;
    padding: 20px;
}

.creation-controls {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.upload-area {
    border: 2px dashed #4a6cf7;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    background-color: #f5f7ff;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-area p {
    margin-bottom: 15px;
    color: #666;
}

#imageUpload {
    display: none;
}

.phone-model-selector {
    margin-bottom: 30px;
}

.phone-model-selector h3 {
    margin-bottom: 15px;
    color: #1e266d;
}

.model-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.model-option {
    padding: 10px 15px;
    background: #f5f7ff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    font-size: 14px;
}

.model-option.active {
    background: #4a6cf7;
    color: white;
    border-color: #4a6cf7;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-secondary {
    background-color: #f5f7ff;
    color: #4a6cf7;
    border: 2px solid #4a6cf7;
}

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

.download-btn {
    background: #28a745 !important;
    border-color: #28a745 !important;
}

.download-btn:hover {
    background: #218838 !important;
    border-color: #1e7e34 !important;
}

/* Стилове за файловата информация */
#fileInfoPanel {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.5;
}

#fileInfoPanel strong {
    color: #1565c0;
    display: block;
    margin-bottom: 8px;
}

/* Примери */
.examples-section {
    padding: 80px 0;
    background-color: #f5f7ff;
}

.examples-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1e266d;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

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

.example-item:hover {
    transform: translateY(-5px);
}

.example-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.example-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.example-item:hover .example-image img {
    transform: scale(1.05);
}

/* Стилове за липсващи снимки */
.image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    z-index: 1;
}

/* Цветни фонове за всеки пример */
.example-item:nth-child(1) .example-image { background: linear-gradient(45deg, #ff6b6b, #ee5a24); }
.example-item:nth-child(2) .example-image { background: linear-gradient(45deg, #4ecdc4, #00b894); }
.example-item:nth-child(3) .example-image { background: linear-gradient(45deg, #45b7d1, #0984e3); }
.example-item:nth-child(4) .example-image { background: linear-gradient(45deg, #a29bfe, #6c5ce7); }
.example-item:nth-child(5) .example-image { background: linear-gradient(45deg, #fd79a8, #e84393); }
.example-item:nth-child(6) .example-image { background: linear-gradient(45deg, #fdcb6e, #e17055); }
.example-item:nth-child(7) .example-image { background: linear-gradient(45deg, #00cec9, #00b894); }
.example-item:nth-child(8) .example-image { background: linear-gradient(45deg, #a29bfe, #fd79a8); }

.example-info {
    padding: 20px;
}

.example-info h3 {
    margin-bottom: 8px;
    color: #1e266d;
    font-size: 1.1rem;
}

.example-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Поръчка */
.order-section {
    padding: 80px 0;
    background-color: #fff;
}

.order-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1e266d;
}

.order-form {
    max-width: 600px;
    margin: 0 auto;
    background: #f5f7ff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    border-color: #4a6cf7;
    outline: none;
    box-shadow: 0 0 5px rgba(74, 108, 247, 0.3);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Футър */
footer {
    background-color: #1e266d;
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

/* Адаптивен дизайн */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 10px 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .creation-container {
        flex-direction: column;
    }
    
    .order-form {
        padding: 20px;
    }
    
    .model-options {
        gap: 8px;
    }
    
    .model-option {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .examples-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .model-options {
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}