/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
}

.logo span {
    color: #764ba2;
}

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

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

.nav-links a:hover {
    color: #667eea;
}

.btn-outline {
    border: 2px solid #667eea;
    color: #667eea;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-link img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    color: white;
}

.hero-content {
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.animate-typing {
    overflow: hidden;
    border-right: .15em solid #fff;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white; }
}

.hero-subtitle {
    font-size: 1.2rem;
    margin: 1rem 0 2rem;
    opacity: 0.9;
}

/* Preview Container */
.preview-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem auto;
    max-width: 900px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    animation: slideInRight 0.8s ease-out;
}

.video-preview {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    text-align: center;
    color: #666;
}

.preview-face {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: float 3s ease-in-out infinite;
}

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

.config-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 600;
}

.config-form input,
.config-form select,
.config-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.config-form input:focus,
.config-form select:focus,
.config-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.language-dropdown {
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg fill="%23667eea" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
    background-color: white;
    padding-right: 40px;
}

.btn-preview {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

/* Packages Section */
.packages-section {
    margin-top: 4rem;
    animation: fadeIn 1s ease-out;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.package-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.package-card.popular {
    border: 3px solid #667eea;
    transform: scale(1.05);
}

.package-card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 20px;
    right: -30px;
    background: #667eea;
    color: white;
    padding: 0.3rem 3rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
}

.package-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    margin: 1rem 0;
}

.package-price span {
    font-size: 1rem;
    color: #666;
}

.package-features {
    list-style: none;
    margin: 1.5rem 0;
}

.package-features li {
    padding: 0.5rem 0;
    color: #555;
}

.btn-select {
    background: #667eea;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-select:hover {
    background: #764ba2;
    transform: scale(1.05);
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.spinner-large {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-content {
    text-align: center;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .preview-container {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .package-card.popular {
        transform: none;
    }
}

/* Admin Stats */
.admin-quick-stats {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 1rem;
    z-index: 1000;
}

.stat-card {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    min-width: 150px;
}

.stat-card h4 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
}
