/* --- Fonts and Reset --- */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Montserrat', sans-serif; background: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover; height: 100vh; display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden; position: relative; } /* --- Subtle dark overlay --- */ body::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); z-index: 0; } /* --- Main Container --- */ .container { position: relative; z-index: 2; background: rgba(20, 20, 20, 0.6); border-radius: 20px; padding: 3rem 2rem; width: 90%; max-width: 600px; text-align: center; box-shadow: 0 0 40px rgba(255, 255, 255, 0.1); animation: fadeIn 1.2s ease forwards; } h1 { font-family: 'Playfair Display', serif; font-size: 2.2rem; margin-bottom: 1.5rem; color: #e0e0e0; letter-spacing: 1px; } /* --- Upload Section --- */ .upload-section { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; } .upload-section label { text-align: left; font-weight: 600; font-size: 0.95rem; } input[type="file"] { padding: 0.6rem; border: none; border-radius: 10px; background: rgba(255, 255, 255, 0.1); color: #ddd; cursor: pointer; transition: background 0.3s; } input[type="file"]:hover { background: rgba(255, 255, 255, 0.2); } /* --- Magic Button --- */ .magic-btn { position: relative; background: linear-gradient(135deg, #00d4ff, #0061ff); color: #fff; border: none; border-radius: 50px; padding: 0.9rem 2rem; font-size: 1rem; font-weight: 600; letter-spacing: 1px; cursor: pointer; overflow: hidden; transition: all 0.4s ease; } .magic-btn::before { content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: rgba(255, 255, 255, 0.3); transform: skewX(-25deg); transition: left 0.5s; } .magic-btn:hover::before { left: 125%; } .magic-btn:hover { transform: scale(1.05); box-shadow: 0 0 25px rgba(0, 208, 255, 0.6); } /* --- Result Page --- */ .result-img { width: 100%; border-radius: 15px; margin-top: 1rem; box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); } .analysis-text { margin: 1.5rem 0; font-size: 1rem; line-height: 1.6; color: #f1f1f1; } /* --- Animation --- */ @keyframes fadeIn { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } } /* --- Responsive --- */ @media (max-width: 600px) { h1 { font-size: 1.8rem; } .magic-btn { padding: 0.8rem 1.8rem; font-size: 0.9rem; } }