/* Global Styles */
:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6c757d;
    --accent-color: #ff6b6b;
    --background-color: #f8f9fa;
    --dark-color: #343a40;
    --light-color: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --perspective: 1000px;
    --transform-style: preserve-3d;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--background-color);
}

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

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.logo svg {
    width: 40px;
    height: 40px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

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

nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

nav a:hover, nav a.active {
    color: var(--primary-color);
    background-color: rgba(74, 108, 247, 0.1);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    background-color: #3a5bd9;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Image Processor Section */
.image-processor {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 40px 0;
    box-shadow: var(--box-shadow);
}

.image-container {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.original-image, .processed-image {
    flex: 1;
}

.original-image h3, .processed-image h3 {
    margin-bottom: 15px;
    text-align: center;
    color: var(--dark-color);
}

.image-preview {
    height: 300px;
    border: 2px dashed #ddd;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f9f9f9;
    position: relative;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.upload-placeholder, .processing-placeholder {
    text-align: center;
    color: var(--secondary-color);
}

.upload-placeholder i, .processing-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ddd;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.action-button {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-button:hover:not([disabled]) {
    background-color: #3a5bd9;
    transform: translateY(-2px);
}

.action-button:disabled {
    background-color: #b9c3f8;
    cursor: not-allowed;
}

.action-button i {
    font-size: 1.1rem;
}

/* Features Section */
.features {
    padding: 60px 0;
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.feature-cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.feature-card {
    flex: 1;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--secondary-color);
}

/* How It Works Section */
.how-it-works {
    padding: 60px 0;
    text-align: center;
    background-color: #f1f5ff;
}

.how-it-works h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.step {
    flex: 1;
    position: relative;
    padding: 30px;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.step p {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 30px;
}

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

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-contact p {
    margin-bottom: 20px;
    color: #adb5bd;
}

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

.social-icons a {
    color: var(--light-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

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

/* Loading Spinner */
.spinner {
    margin: 20px auto;
    width: 70px;
    text-align: center;
}

.spinner > div {
    width: 18px;
    height: 18px;
    background-color: var(--primary-color);
    border-radius: 100%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
    animation-delay: -0.32s;
}

.spinner .bounce2 {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    } 40% { 
        transform: scale(1.0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero, .image-container, .feature-cards, .steps {
        flex-direction: column;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    .feature-card, .step {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}