gruha-alankara / static /css /style.css
invictus-code's picture
feat: Refactor AI detection, integrate BLIP text heuristics, and elevate suggestions UI
2efe521
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
:root {
--bg-primary: #0f1016;
--bg-secondary: rgba(25, 26, 35, 0.7);
--text-primary: #f8fafc;
--text-secondary: #94a3b8;
--accent-color: #8b5cf6;
--accent-hover: #a78bfa;
--glass-border: rgba(255, 255, 255, 0.08);
--transition: 0.3s ease;
}
body {
background: radial-gradient(circle at top left, #1a1b26, var(--bg-primary));
color: var(--text-primary);
font-family: 'Poppins', sans-serif;
margin: 0;
min-height: 100vh;
}
/* Glassmorphism Navbar */
.navbar {
background: var(--bg-secondary);
backdrop-filter: blur(12px);
padding: 1rem 5%;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--glass-border);
position: sticky;
top: 0;
z-index: 100;
}
.navbar a {
color: var(--text-primary);
text-decoration: none;
margin-left: 2rem;
font-weight: 400;
transition: color var(--transition);
}
.navbar a:hover {
color: var(--accent-color);
}
.brand {
font-size: 1.5rem;
font-weight: 600;
color: var(--accent-color) !important;
letter-spacing: 1px;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 3rem 2rem;
}
/* Modern Glass Cards */
.card {
background: var(--bg-secondary);
backdrop-filter: blur(16px);
border: 1px solid var(--glass-border);
border-radius: 16px;
padding: 2.5rem;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
animation: fadeUp 0.6s ease-out;
}
/* Inputs & Forms */
input {
width: 100%;
padding: 0.8rem 1rem;
margin-bottom: 1rem;
background: rgba(255, 255, 255, 0.03);
border: 1px solid var(--glass-border);
border-radius: 8px;
color: var(--text-primary);
font-family: 'Poppins', sans-serif;
box-sizing: border-box;
transition: border var(--transition);
}
input:focus {
outline: none;
border-color: var(--accent-color);
}
/* Buttons */
.btn {
background: linear-gradient(135deg, var(--accent-color), #6d28d9);
color: #fff;
border: none;
padding: 0.8rem 2rem;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: transform var(--transition), box-shadow var(--transition);
width: 100%;
font-family: 'Poppins', sans-serif;
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}
/* Camera Feed */
.camera-container {
border-radius: 16px;
overflow: hidden;
border: 1px solid var(--glass-border);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
@keyframes fadeUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Hero Section */
.hero-section {
padding: 4rem 1rem 2rem;
animation: fadeUp 0.8s ease-out;
}
.gradient-text {
font-size: clamp(2rem, 5vw, 4rem);
background: linear-gradient(135deg, #a78bfa, #6d28d9);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
margin-bottom: 1rem;
}
.subtitle {
font-size: clamp(1rem, 2vw, 1.2rem);
color: var(--text-secondary);
max-width: 600px;
margin: 0 auto 2rem;
}
.primary-btn {
display: inline-block;
width: auto;
font-size: 1.1rem;
}
/* Features Grid */
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
margin-top: 3rem;
}
.feature-card {
text-align: center;
padding: 2rem;
transition: transform 0.3s ease;
}
.feature-card:hover {
transform: translateY(-10px);
border-color: var(--accent-color);
}
.text-center {
text-align: center;
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
.navbar {
flex-direction: column;
padding: 1rem;
gap: 1rem;
}
.navbar div {
display: flex;
gap: 1rem;
flex-wrap: wrap;
justify-content: center;
}
.navbar a {
margin-left: 0;
}
.container {
padding: 1.5rem 1rem;
}
.card {
padding: 1.5rem;
}
}
/* Theme Selector Grid */
.theme-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
max-width: 900px;
margin: 0 auto;
}
.theme-card {
cursor: pointer;
text-align: center;
padding: 1.5rem;
border: 2px solid transparent;
transition: all var(--transition);
font-weight: 600;
}
.theme-card:hover {
border-color: rgba(139, 92, 246, 0.5);
/* Faded accent color */
transform: translateY(-3px);
}
.theme-card.selected {
border-color: var(--accent-color);
background: rgba(139, 92, 246, 0.1);
box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}
/* Premium Product Cards & Grid Layout */
.grid-system {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 2rem;
}
.product-card {
background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
border: 1px solid rgba(139, 92, 246, 0.15);
border-radius: 16px;
overflow: hidden;
transition: transform var(--transition), box-shadow var(--transition);
position: relative;
display: flex;
flex-direction: column;
}
.product-card:hover {
transform: translateY(-8px);
box-shadow: 0 12px 30px rgba(139, 92, 246, 0.3);
border-color: rgba(139, 92, 246, 0.4);
}
.product-img-container {
width: 100%;
height: 180px;
position: relative;
overflow: hidden;
background: #111;
}
.product-img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.product-card:hover .product-img {
transform: scale(1.05);
}
.product-tag {
position: absolute;
top: 1rem;
right: 1rem;
background: rgba(139, 92, 246, 0.9);
backdrop-filter: blur(4px);
color: #fff;
padding: 0.3rem 0.8rem;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.5px;
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.product-details {
padding: 1.5rem;
text-align: left;
display: flex;
flex-direction: column;
flex-grow: 1;
}
.product-title {
color: var(--text-primary);
font-size: 1.15rem;
font-weight: 600;
margin: 0 0 0.5rem 0;
line-height: 1.3;
}
.product-price {
color: var(--accent-color);
font-size: 1.3rem;
font-weight: 600;
margin: 0 0 1.2rem 0;
}