/* Global Styles */
:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --accent-color: #8b5cf6;
    --primary-rgb: 99, 102, 241;
    --accent-rgb: 139, 92, 246;
    --text-color: #333;
    --light-bg: #f9fafb;
    --white: #ffffff;
    --black: #000000;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* Header */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 0;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.nav-links li a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links li a i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.nav-links li a:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
    color: var(--primary-color);
}

.nav-links li a.active {
    color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.08);
}

.nav-links li a.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.nav-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    margin: 2px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        gap: 10px;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-btn {
        display: none;
    }
}

.logo {
    position: relative;
    z-index: 2;
}

.logo img {
    height: 45px;
    transition: all 0.3s ease;
}

header.scrolled .logo img {
    height: 38px;
}

nav {
    position: relative;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 28px;
    position: relative;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s;
    padding: 8px 0;
    position: relative;
}

nav ul li a:before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a:hover:before,
nav ul li a.active:before {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
    padding: 5px;
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    color: var(--white);
    padding: 100px 0 120px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.svg');
    opacity: 0.1;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--white);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #e0e0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 40px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-btn.primary {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero-btn.primary:hover {
    background: #f8f9fa;
    border-color: #f8f9fa;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    background: linear-gradient(to right, #ffffff, #e0e0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

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

/* Face Swap Playground */
.face-swap-playground {
    padding: 80px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.section-header {
    margin-bottom: 40px;
}

.section-header.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.upload-container {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.upload-area {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0 30px;
    flex-wrap: wrap;
    position: relative;
}

.upload-card {
    flex: 1;
    min-width: 280px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.upload-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.upload-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.upload-card h3 i {
    margin-right: 8px;
    color: var(--primary-color);
}

.upload-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.upload-box {
    width: 100%;
    height: 200px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: var(--white);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.upload-box:hover {
    border-color: var(--primary-color);
}

.upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.upload-placeholder i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    opacity: 0.7;
}

.upload-placeholder span {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.upload-placeholder p {
    font-size: 0.8rem;
    color: #999;
}

.swap-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0 10px;
    align-self: center;
}

.sample-images {
    margin-top: 15px;
    text-align: left;
}

.sample-images p {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #666;
}

.sample-grid {
    display: flex;
    gap: 10px;
}

.sample {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.sample:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.swap-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
}

.swap-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.swap-btn[disabled] {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.clear-btn {
    background-color: transparent;
    border: 1px solid #ccc;
    color: #666;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.clear-btn:hover {
    border-color: #999;
    color: #333;
}

.processing-indicator {
    margin: 30px auto;
    max-width: 400px;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.progress-bar {
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    margin-top: 15px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0;
    transition: width 0.3s;
    border-radius: 4px;
}

.result-area {
    margin-top: 40px;
    animation: fadeIn 0.5s;
}

.result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.result-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.result-image img {
    width: 100%;
    height: auto;
    display: block;
}

.result-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.result-actions button {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.share-btn, .enhance-btn {
    background-color: white;
    border: 1px solid #ddd;
    color: #555;
}

.share-btn:hover, .enhance-btn:hover {
    border-color: #ccc;
    color: #333;
    background-color: #f9f9f9;
}

.try-more {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.try-more h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #555;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding: 0 20px;
}

.feature-card {
    background-color: #f8f9fa;
    padding: 25px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

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

.feature-card h5 {
    font-size: 1rem;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--white);
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-box {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-box p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--accent-rgb), 0.05));
    top: -100px;
    left: -100px;
    z-index: 0;
}

.testimonials-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--accent-rgb), 0.05));
    bottom: -50px;
    right: -50px;
    z-index: 0;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.testimonial {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    position: relative;
}

.testimonial-content p::before {
    content: '\201C';
    font-size: 3rem;
    color: rgba(var(--primary-rgb), 0.2);
    position: absolute;
    left: -15px;
    top: -15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.author-info h4 {
    font-size: 0.95rem;
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.author-info p {
    font-size: 0.8rem;
    margin: 0;
    color: #777;
}

button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: #1f2937;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 300px;
}

.footer-logo img {
    height: 45px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #e5e7eb;
    max-width: 350px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.download-app p {
    color: #d1d5db;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.app-buttons {
    display: flex;
    gap: 10px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #374151;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.app-btn:hover {
    background-color: #4b5563;
}

.app-btn i {
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.link-group {
    min-width: 160px;
}

.link-group h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.link-group ul {
    list-style: none;
    padding: 0;
}

.link-group ul li {
    margin-bottom: 10px;
}

.link-group ul li a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.link-group ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #d1d5db;
    font-size: 1.2rem;
    transition: color 0.3s;
}

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

.language-selector select {
    background-color: #374151;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .language-selector {
        margin-top: 15px;
    }
}

/* Hero Description */
.hero-description {
    max-width: 900px;
    margin: 30px auto 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.hero-description strong {
    color: #ffbc00;
}

/* Instructions Block */
.instructions-block {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
    min-width: 250px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.instruction-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-content h4 {
    margin: 0 0 5px;
    color: var(--text-color);
    font-size: 1.1rem;
}

.step-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Usage Notes */
.usage-notes {
    background-color: rgba(var(--primary-rgb), 0.05);
    border-radius: 10px;
    padding: 25px;
    margin-top: 40px;
}

.usage-notes h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.usage-notes ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.usage-notes li {
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.usage-notes li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.03), rgba(var(--accent-rgb), 0.03));
}

.steps-wrapper {
    position: relative;
    margin: 60px 0;
}

/* Timeline styling */
.steps-timeline {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 5%;
    width: 90%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: translateY(-50%);
}

.timeline-point {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.timeline-point.point-1 {
    left: 5%;
}

.timeline-point.point-2 {
    left: 50%;
}

.timeline-point.point-3 {
    left: 95%;
    transform: translateX(-100%) translateY(-50%);
}

/* Steps container styling */
.steps-container {
    position: relative;
    z-index: 2;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
}

.step:last-child {
    margin-bottom: 0;
}

/* Alternating layout for steps */
.step-1, .step-3 {
    justify-content: flex-start;
}

.step-2 {
    justify-content: flex-end;
}

.step-content {
    display: flex;
    max-width: 500px;
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover .step-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-icon i {
    font-size: 1.8rem;
    color: white;
}

.step-text h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}

.step-image {
    width: 300px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin: 0 30px;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

/* CTA button styling */
.cta-container {
    text-align: center;
    margin-top: 40px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .steps-timeline {
        display: none;
    }
    
    .step {
        flex-direction: column;
        margin-bottom: 60px;
    }
    
    .step-1, .step-2, .step-3 {
        justify-content: center;
    }
    
    .step-2 {
        flex-direction: column-reverse;
    }
    
    .step-content {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .step-2 .step-content {
        margin-bottom: 0;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .step-image {
        width: 100%;
        max-width: 300px;
        margin: 0;
    }
    
    .step-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Feature section continues */

/* Video Face Swap specific styles */
.video-face-hero {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--secondary-rgb), 0.2) 100%);
}

.video-face-hero .hero-content h1,
.video-face-hero .hero-content p {
    color: var(--primary-dark);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.video-face-hero .hero-content .hero-subtitle {
    font-weight: 600;
    color: var(--accent-color);
}

.video-face-hero .hero-content .hero-description {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.video-face-swap-demo .upload-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.video-face-swap-demo .upload-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.video-face-swap-demo .upload-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.video-face-swap-demo .upload-card h3 {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.video-face-swap-demo .upload-card h3 i {
    margin-right: 10px;
    color: var(--accent-color);
}

.video-face-swap-demo .upload-desc {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.video-face-swap-demo .upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--accent-light);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
    text-decoration: none;
}

.video-face-swap-demo .upload-box:hover {
    background-color: rgba(var(--accent-rgb), 0.05);
    border-color: var(--accent-color);
}

.video-face-swap-demo .upload-placeholder i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.video-face-swap-demo .upload-placeholder span {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.video-face-swap-demo .upload-placeholder p {
    font-size: 0.8rem;
    color: #777;
}

.video-face-swap-demo .sample-videos p,
.video-face-swap-demo .face-detection-options p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #555;
}

.video-face-swap-demo .sample-grid {
    display: flex;
    gap: 10px;
}

.video-face-swap-demo .sample {
    width: 123px;
    height: 60px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
}

.video-face-swap-demo .options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.video-face-swap-demo .option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.video-face-swap-demo .option label {
    margin-left: 8px;
    font-size: 0.9rem;
    color: #444;
}

.video-face-swap-demo .processing-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.video-face-swap-demo .process-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s;
}

.video-face-swap-demo .process-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.4);
}

.video-face-swap-demo .process-button i {
    margin-right: 8px;
}

.video-face-swap-demo .quality-selector {
    display: flex;
    align-items: center;
}

.video-face-swap-demo .quality-selector span {
    margin-right: 10px;
    font-weight: 500;
}

.video-face-swap-demo .quality-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    color: #444;
    font-size: 0.9rem;
}

.video-face-swap-demo .progress-container {
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.video-face-swap-demo .progress-bar {
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.video-face-swap-demo .progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s;
}

.video-face-swap-demo .progress-text {
    text-align: right;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
}

.video-face-swap-demo .progress-stages {
    display: flex;
    justify-content: space-between;
}

.video-face-swap-demo .stage {
    font-size: 0.8rem;
    color: #777;
    position: relative;
}

.video-face-swap-demo .stage.active {
    color: var(--accent-color);
    font-weight: 600;
}

.video-face-swap-demo .result-container {
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.video-face-swap-demo .result-container h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.video-face-swap-demo .video-result {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-face-swap-demo .video-result video {
    width: 100%;
    max-height: 400px;
}

.video-face-swap-demo .result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.video-face-swap-demo .download-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.video-face-swap-demo .share-btn {
    display: inline-flex;
    align-items: center;
    background-color: #3b5998;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.video-face-swap-demo .new-swap-btn {
    display: inline-flex;
    align-items: center;
    background-color: #555;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.video-face-swap-demo .download-btn:hover,
.video-face-swap-demo .share-btn:hover,
.video-face-swap-demo .new-swap-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.video-face-swap-demo .download-btn i,
.video-face-swap-demo .share-btn i,
.video-face-swap-demo .new-swap-btn i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .video-face-swap-demo .upload-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-face-swap-demo .processing-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .video-face-swap-demo .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .video-face-swap-demo .download-btn,
    .video-face-swap-demo .share-btn,
    .video-face-swap-demo .new-swap-btn {
        width: 100%;
        justify-content: center;
    }
}

.workflow-step p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.workflow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    padding: 0 10px;
}

@media (max-width: 992px) {
    .workflow-arrow {
        display: none;
    }
    
    .workflow-container {
        flex-direction: column;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .workflow-step {
        width: 100%;
    }
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    background-color: var(--white);
}

.faq-question {
    background-color: var(--white);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.faq-question:hover {
    background-color: rgba(var(--primary-rgb), 0.03);
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-question h3 i {
    color: var(--primary-color);
}

.toggle-icon {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-answer {
    background-color: rgba(var(--primary-rgb), 0.02);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 10px 0 20px;
    margin: 0;
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
}

/* Feature Card Update */
.feature-card p {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

/* Rating stars in testimonials */
.rating {
    display: flex;
    gap: 3px;
    margin-top: 5px;
}

.rating i {
    color: #fbbf24;
    font-size: 0.8rem;
}

/* Sample images grid */
.sample-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sample {
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    background-size: cover;
    background-position: center;
    background-color: #eee;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s;
    border: 2px solid transparent;
}

.sample:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .upload-area {
        flex-direction: column;
    }
    
    .instructions-block {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
}
