/* Base Styles & Variables */
:root {
    --primary-color: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #99f6e4;
    --secondary-color: #0891b2;
    --secondary-dark: #0369a1;
    --secondary-light: #e0f2fe;
    --accent-color: #065f46;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.logo-img {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    margin-right: 1rem;
}

.main-header h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin: 0;
}

.tagline {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Cards */
.card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Info Cards Section */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.fact-card {
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.icon-large {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.fact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.feature-list {
    margin-top: 1rem;
    text-align: left;
    padding-left: 1.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stats-card {
    background: linear-gradient(145deg, #ecfdf5, #f0f9ff);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    border-bottom: 4px solid var(--secondary-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stats-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.upload-card, .result-card {
    min-height: 400px;
}

.upload-card h2, .result-card h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.upload-zone {
    border: 3px dashed var(--primary-color);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.upload-zone:hover {
    border-color: var(--secondary-color);
    background-color: rgba(13, 148, 136, 0.1);
}

.hidden-input {
    display: none;
}

.upload-label {
    cursor: pointer;
    display: block;
}

.icon-xl {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.upload-subtext {
    font-size: 0.9rem;
    color: var(--text-light);
}

.image-preview {
    margin-top: 1.5rem;
}

.preview-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Result Content */
.result-content {
    margin-bottom: 1.5rem;
}

.result-card .action-buttons {
    margin-top: 1.5rem;
}

/* Comparison Section */
.comparison-section {
    padding: 2rem;
}

.comparison-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Features Section */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.check-list li, .tech-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.check-list i, .tech-list i {
    color: var(--success);
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.tech-list i {
    color: var(--secondary-color);
}

/* Footer */
.main-footer {
    background-color: #1f2937;
    color: var(--white);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo i {
    font-size: 2rem;
    margin-right: 0.5rem;
    color: var(--primary-light);
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo p {
    margin-top: 1rem;
    opacity: 0.8;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 150px;
}

.footer-column h4 {
    color: var(--primary-light);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-column i {
    margin-right: 0.5rem;
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.loading-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 10px;
    color: var(--white);
    box-shadow: var(--shadow);
    animation: slideIn 0.5s ease-out;
    max-width: 300px;
}

.notification.success {
    background-color: var(--success);
}

.notification.warning {
    background-color: var(--warning);
}

.notification.error {
    background-color: var(--error);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-section {
        grid-template-columns: 1fr 1fr;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .upload-zone {
        padding: 1.5rem;
    }
    
    .icon-xl {
        font-size: 3rem;
    }
    
    .upload-text {
        font-size: 1rem;
    }
}
