:root {
    --primary: #c29d59;
    --primary-dark: #a67c37;
    --bg-dark: #0f1115;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent: #5986c2;
    --glass-blur: 15px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* Background Animations */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #c25959;
    top: 50%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 100px) scale(1.1);
    }
}

/* Header */
header {
    padding: 30px 0;
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

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

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Upload Area */
.upload-section {
    max-width: 600px;
    margin: 0 auto;
}

.drop-area {
    background: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 24px;
    padding: 60px 40px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.drop-area:hover,
.drop-area.highlight {
    border-color: var(--primary);
    background: rgba(194, 157, 89, 0.05);
    transform: translateY(-5px);
}

.drop-area i {
    font-size: 4rem;
    color: var(--primary);
}

.drop-area input {
    display: none;
}

.button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Preview Area */
.preview-container {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.5s ease;
}

#image-preview {
    max-width: 100%;
    max-height: 400px;
    border-radius: 16px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-primary {
    padding: 12px 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 20px rgba(194, 157, 89, 0.2);
}

.btn-secondary {
    padding: 12px 30px;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Results Section */
.results-section {
    padding: 60px 0 120px;
}

.results-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 50px;
    animation: slideUp 0.6s ease;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.results-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

.badge {
    background: var(--accent);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.result-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-item.large {
    grid-column: span 2;
}

.result-item.highlight {
    background: linear-gradient(135deg, rgba(194, 157, 89, 0.1), rgba(89, 134, 194, 0.1));
    border-color: rgba(194, 157, 89, 0.2);
}

.result-item h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-item h3 i {
    color: var(--primary);
}

.value-range {
    font-size: 2.2rem;
    font-weight: 700;
}

.currency {
    font-size: 1rem;
    color: var(--text-muted);
}

.result-item ul {
    list-style: none;
}

.result-item li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-item li::before {
    content: '→';
    color: var(--primary);
}

/* Utilities */
.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loader */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .drop-area {
        padding: 40px 20px;
    }

    .drop-area i {
        font-size: 3rem;
    }

    .results-card {
        padding: 25px;
        border-radius: 20px;
    }

    .results-header h2 {
        font-size: 1.8rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .result-item.large {
        grid-column: span 1;
    }

    .value-range {
        font-size: 1.8rem;
    }

    header .container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 20px;
    }

    /* Make buttons larger for touch */
    .button,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
    }

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

/* Fix for very small screens */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .logo span {
        font-size: 1.2rem;
    }
}