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

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
.header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.logo i {
    font-size: 1.75rem;
    color: var(--primary);
}

.pro-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background: white;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #e9ecef;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: white;
    color: var(--dark);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* Hero */
.hero {
    background: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat i {
    font-size: 2rem;
    color: var(--primary);
}

.stat span {
    font-weight: 600;
    color: var(--dark);
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

.section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
}

/* Template Gallery */
.template-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.template-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.template-card.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.template-preview {
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    color: white;
}

.preview-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.preview-role {
    font-size: 0.9rem;
    opacity: 0.9;
}

.modern-preview {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.elegant-preview {
    background: linear-gradient(135deg, #2d3748, #4a5568);
}

.creative-preview {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.corporate-preview {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.minimal-preview {
    background: white;
    color: #1a1a2e;
    border: 2px solid #e5e7eb;
}

.gradient-preview {
    background: linear-gradient(135deg, #fa709a, #fee140);
}

.bold-preview {
    background: linear-gradient(135deg, #ee0979, #ff6a00);
}

.tech-preview {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

.template-info {
    padding: 1rem;
    text-align: center;
}

.template-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.template-info p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Personalization */
.personalization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.panel {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-header i {
    font-size: 1.5rem;
}

.panel-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.panel-content {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.input,
.select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.input:focus,
.select:focus {
    outline: none;
    border-color: var(--primary);
}

.input-sm {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.color-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.color-input {
    width: 60px;
    height: 45px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
}

.color-input-wrapper .input-sm {
    flex: 1;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input,
.radio-label input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-input {
    padding: 10px;
    border: 2px dashed var(--primary);
    border-radius: 8px;
    cursor: pointer;
}

.file-preview {
    margin-top: 1rem;
    position: relative;
    display: inline-block;
}

.file-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.btn-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-text {
    display: block;
    margin-top: 0.5rem;
    color: var(--gray);
    font-size: 0.85rem;
}

/* Preview */
.preview-container {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.preview-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.business-card {
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    transition: all 0.3s;
    font-family: 'Roboto', sans-serif;
}

/* Card Sizes */
.business-card.horizontal {
    width: 850px;
    height: 550px;
}

.business-card.vertical {
    width: 550px;
    height: 850px;
}

.business-card.horizontal.large {
    width: 900px;
    height: 500px;
}

.business-card.square {
    width: 700px;
    height: 700px;
}

.preview-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.footer p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .template-gallery {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

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

    .preview-container {
        padding: 1.5rem;
    }

    .business-card.horizontal {
        width: 100%;
        max-width: 425px;
        height: auto;
        aspect-ratio: 85/55;
    }

    .business-card.vertical {
        width: 100%;
        max-width: 275px;
        height: auto;
        aspect-ratio: 55/85;
    }

    .preview-actions {
        flex-direction: column;
    }
}
