VisionAI / styles.css
aleehassan's picture
Upload 5 files
e2b8364 verified
/* ============================
GLOBAL STYLES
============================= */
:root {
/* Main color scheme */
--primary: #6366f1;
--primary-dark: #4f46e5;
--primary-light: #818cf8;
--secondary: #10b981;
--secondary-dark: #059669;
--accent: #f43f5e;
--accent-dark: #e11d48;
--light: #f8fafc;
--dark: #0f172a;
--gray: #64748b;
--gray-light: #cbd5e1;
--gray-dark: #334155;
/* Gradients */
--gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
--gradient-secondary: linear-gradient(135deg, #10b981, #06b6d4);
--gradient-accent: linear-gradient(135deg, #f43f5e, #fb7185);
--gradient-dark: linear-gradient(135deg, #1e293b, #0f172a);
/* Shadows */
--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
--shadow-xl: 0 15px 25px rgba(0, 0, 0, 0.1);
/* Animations */
--transition-fast: 0.2s ease;
--transition-normal: 0.3s ease;
--transition-slow: 0.5s ease;
/* Border radius */
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 16px;
--radius-xl: 24px;
--radius-full: 9999px;
}
@font-face {
font-family: 'Cabinet Grotesk';
src: url('https://fonts.cdnfonts.com/css/cabinet-grotesk');
font-weight: normal;
font-style: normal;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
scroll-padding-top: 80px;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: var(--light);
color: var(--dark);
overflow-x: hidden;
line-height: 1.6;
}
.container {
max-width: 1280px;
padding: 0 1.5rem;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'Cabinet Grotesk', 'Segoe UI', sans-serif;
font-weight: 700;
line-height: 1.2;
}
a {
text-decoration: none;
color: var(--primary);
transition: var(--transition-normal);
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.75rem 1.5rem;
border-radius: var(--radius-md);
font-weight: 600;
transition: var(--transition-normal);
cursor: pointer;
border: none;
outline: none;
text-align: center;
}
.btn-primary {
background: var(--gradient-primary);
color: white;
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
background: linear-gradient(135deg, #4f46e5, #7c3aed);
color: white;
}
.btn-primary:active {
transform: translateY(0);
}
.btn-outline {
background: transparent;
color: var(--primary);
border: 2px solid var(--primary-light);
}
.btn-outline:hover {
background: rgba(99, 102, 241, 0.1);
transform: translateY(-2px);
color: var(--primary-dark);
border-color: var(--primary);
}
.btn-demo {
background: var(--gradient-secondary);
color: white !important;
border-radius: var(--radius-full);
padding: 0.5rem 1.25rem;
font-size: 0.9rem;
font-weight: 600;
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
transition: all 0.3s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}
.btn-demo:hover {
transform: translateY(-2px) scale(1.05);
box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
background: linear-gradient(135deg, #059669, #0891b2);
}
.gradient-text {
background: var(--gradient-primary);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
position: relative;
display: inline-block;
}
/* ============================
PARTICLE BACKGROUND
============================= */
#particleCanvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0.6;
}
/* ============================
NAVBAR
============================= */
.navbar {
background: rgba(15, 23, 42, 0.95);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
transition: all 0.4s ease;
padding: 1rem 0;
box-shadow: var(--shadow-md);
z-index: 1000;
}
.navbar-shrink {
padding: 0.5rem 0;
box-shadow: var(--shadow-lg);
}
.logo-text {
font-family: 'Cabinet Grotesk', sans-serif;
font-weight: 700;
font-size: 1.5rem;
color: white;
position: relative;
}
.logo-accent {
background: var(--gradient-secondary);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.nav-link {
color: var(--gray-light) !important;
font-weight: 500;
margin: 0 0.75rem;
padding: 0.5rem 0;
position: relative;
transition: var(--transition-normal);
}
.nav-link:hover, .nav-link.active {
color: white !important;
}
.nav-link::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 0;
left: 0;
background: var(--gradient-secondary);
transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
width: 100%;
}
/* ============================
HERO SECTION
============================= */
.hero-section {
position: relative;
min-height: 100vh;
display: flex;
align-items: center;
padding: 100px 0;
color: white;
overflow: hidden;
}
.hero-section::before {
content: "";
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
background: url(../assets/hero-bg.jpg) no-repeat center center/cover;
filter: brightness(0.2); /* 👈 Adjust brightness here */
z-index: -1;
}
.hero-title {
font-size: 3.5rem;
margin-bottom: 1.5rem;
letter-spacing: -0.025em;
}
.hero-subtitle {
font-size: 1.25rem;
opacity: 0.9;
margin-bottom: 2rem;
max-width: 500px;
}
.hero-btns {
margin-bottom: 2rem;
}
.tech-badges {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-top: 2rem;
}
.tech-badges .badge {
background: rgba(255, 255, 255, 0.1);
color: white;
border-radius: var(--radius-full);
padding: 0.5rem 1rem;
font-size: 0.85rem;
backdrop-filter: blur(5px);
border: 1px solid rgba(255, 255, 255, 0.1);
transition: var(--transition-normal);
}
.tech-badges .badge:hover {
transform: translateY(-3px);
background: rgba(255, 255, 255, 0.15);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.hero-image {
position: relative;
box-shadow: var(--shadow-xl);
border-radius: var(--radius-lg);
animation: float 6s ease-in-out infinite;
z-index: 2;
clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}
.hero-image img {
border-radius: var(--radius-lg);
max-width: 100%;
height: auto;
border: 4px solid rgba(255, 255, 255, 0.1);
}
.floating-tag {
position: absolute;
background: var(--gradient-primary);
color: white;
padding: 0.5rem 1rem;
border-radius: var(--radius-full);
font-size: 0.85rem;
font-weight: 600;
box-shadow: var(--shadow-md);
z-index: 3;
animation: pulse 3s ease-in-out infinite;
}
.tag-1 {
top: -15px;
left: 5rem;
animation-delay: 0s;
}
.tag-2 {
bottom: -1rem;
right: 3rem;
animation-delay: -1s;
background: var(--gradient-secondary);
}
.tag-3 {
top: 4.5rem;
left: -2rem;
animation-delay: -2s;
background: var(--gradient-accent);
}
.pulse-circle {
position: absolute;
width: 200px;
height: 200px;
border-radius: 50%;
background: rgba(99, 102, 241, 0.15);
z-index: 1;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
animation: pulseCircle 3s infinite;
}
@keyframes float {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-20px);
}
}
@keyframes pulse {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
}
@keyframes pulseCircle {
0% {
transform: translate(-50%, -50%) scale(0.8);
opacity: 0.6;
}
50% {
transform: translate(-50%, -50%) scale(1);
opacity: 0.3;
}
100% {
transform: translate(-50%, -50%) scale(0.8);
opacity: 0.6;
}
}
.hero-shape {
position: absolute;
bottom: -1px;
left: 0;
width: 100%;
line-height: 0;
z-index: 3;
}
/* ============================
SECTION HEADERS
============================= */
.section-header {
text-align: center;
margin-bottom: 3rem;
}
.section-pre-title {
font-size: 0.95rem;
color: var(--primary);
letter-spacing: 2px;
font-weight: 600;
margin-bottom: 1rem;
}
.section-title {
font-size: 2.5rem;
margin-bottom: 1rem;
position: relative;
display: inline-block;
}
.section-subtitle {
font-size: 1.1rem;
color: var(--gray);
max-width: 600px;
margin: 0 auto;
}
/* ============================
FEATURES SECTION
============================= */
.features-section {
padding: 6rem 0;
position: relative;
overflow: hidden;
}
.features-container {
margin-top: 3rem;
}
.feature-card-wrapper {
padding: 15px;
transition: var(--transition-normal);
}
.feature-card {
background: white;
border-radius: var(--radius-lg);
padding: 2rem;
height: 100%;
border: 1px solid var(--gray-light);
transition: var(--transition-normal);
position: relative;
overflow: hidden;
box-shadow: var(--shadow-sm);
display: flex;
flex-direction: column;
align-items: flex-start;
}
.feature-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: var(--gradient-primary);
transform: scaleX(0);
transform-origin: left;
transition: transform 0.5s ease;
}
.feature-card:hover {
transform: translateY(-10px);
box-shadow: var(--shadow-lg);
border-color: transparent;
}
.feature-card:hover::before {
transform: scaleX(1);
}
.feature-icon {
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
background: var(--gradient-primary);
color: white;
border-radius: var(--radius-md);
margin-bottom: 1.5rem;
font-size: 1.5rem;
box-shadow: 0 5px 15px rgba(99, 102, 241, 0.25);
position: relative;
z-index: 1;
overflow: hidden;
}
.feature-card:nth-child(2n) .feature-icon,
.feature-card:nth-child(2n)::before {
background: var(--gradient-secondary);
}
.feature-card:nth-child(3n) .feature-icon,
.feature-card:nth-child(3n)::before {
background: var(--gradient-accent);
}
.feature-icon::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.2);
z-index: -1;
transform: translateX(-100%);
transition: transform 0.5s ease;
}
.feature-card:hover .feature-icon::after {
transform: translateX(0);
}
.feature-card h4 {
font-size: 1.25rem;
margin-bottom: 1rem;
transition: var(--transition-normal);
}
.feature-card p {
color: var(--gray);
margin-bottom: 0;
}
/* ============================
DETECTION SECTION
============================= */
.detection-section {
padding: 6rem 0;
background-color: #f1f5f9;
position: relative;
}
.detection-container {
background: white;
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow-lg);
border: 1px solid var(--gray-light);
}
.model-header {
background: var(--gradient-dark);
color: white;
padding: 1.5rem;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 1rem;
}
.model-header h5 {
margin: 0;
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 1.25rem;
}
.model-controls {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 1.5rem;
}
.model-select-group {
display: flex;
align-items: center;
gap: 0.75rem;
}
.model-select-group label {
color: var(--gray-light);
margin: 0;
white-space: nowrap;
}
.model-select-group select {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
color: white;
padding: 0.5rem 1rem;
border-radius: var(--radius-md);
min-width: 150px;
}
/* Style the options (may not work in all browsers like Firefox) */
.model-select-group select option {
background: rgba(255, 255, 255, 0.1) !important;
color: rgb(0, 0, 0) !important; ;
}
.threshold-slider {
display: flex;
flex-direction: column;
gap: 0.5rem;
min-width: 200px;
}
.threshold-slider label {
color: var(--gray-light);
display: flex;
justify-content: space-between;
width: 100%;
margin: 0;
}
.threshold-slider input {
width: 100%;
}
.detection-content {
padding: 1.5rem;
}
.camera-section {
background: #f8fafc;
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow-sm);
border: 1px solid var(--gray-light);
}
.camera-actions {
display: flex;
gap: 0.75rem;
padding: 1rem;
background: white;
border-bottom: 1px solid var(--gray-light);
}
.action-btn {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1.25rem;
border-radius: var(--radius-md);
font-size: 0.95rem;
font-weight: 600;
transition: var(--transition-fast);
cursor: pointer;
border: none;
}
.upload-btn {
background: var(--gradient-primary);
color: white;
}
.capture-btn {
background: var(--gradient-secondary);
color: white;
}
.screenshot-btn {
background: var(--gradient-accent);
color: white;
}
/* .screenshot-btn:disabled {
background: var(--gray-light);
cursor: not-allowed;
} */
.action-btn:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
.capture-container {
padding: 1rem;
}
.video-wrapper {
position: relative;
width: 100%;
height: 500px;
background-color: #000;
border-radius: var(--radius-md);
overflow: hidden;
border: 2px solid var(--gray-light);
}
#detectedCanvas {
width: 100%;
height: 100%;
display: block;
object-fit: contain;
}
#liveVideo {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
#loadingOverlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: white;
z-index: 10;
}
.spinner {
width: 50px;
height: 50px;
border: 4px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: white;
animation: spin 1s linear infinite;
margin-bottom: 1rem;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.corner-label {
position: absolute;
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 0.5rem 1rem;
font-size: 0.85rem;
font-weight: 600;
z-index: 5;
}
.top-left {
top: 1rem;
left: 1rem;
border-radius: var(--radius-md);
background: var(--gradient-primary);
}
.bottom-right {
bottom: 1rem;
right: 1rem;
border-radius: var(--radius-md);
background: var(--gradient-secondary);
}
/* Results Panel */
.results-panel {
background: white;
border-radius: var(--radius-lg);
overflow: hidden;
height: 100%;
border: 1px solid var(--gray-light);
box-shadow: var(--shadow-sm);
display: flex;
flex-direction: column;
}
.panel-tabs {
display: flex;
border-bottom: 1px solid var(--gray-light);
}
.panel-tab {
flex: 1;
text-align: center;
padding: 1rem;
background: none;
border: none;
font-weight: 600;
color: var(--gray);
cursor: pointer;
transition: var(--transition-fast);
position: relative;
}
.panel-tab.active {
color: var(--primary);
}
.panel-tab::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 3px;
background: var(--primary);
transform: scaleX(0);
transition: transform 0.3s ease;
}
.panel-tab.active::after {
transform: scaleX(1);
}
/* ============================
TEAM MEMBER CARDS
============================= */
.team-section {
padding: 6rem 0;
position: relative;
}
.team-container {
margin-top: 3rem;
}
.team-card {
background: white;
border-radius: var(--radius-lg);
padding: 2rem;
border: 1px solid var(--gray-light);
box-shadow: var(--shadow-sm);
margin-bottom: 2rem;
transition: var(--transition-normal);
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.team-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: var(--gradient-primary);
transform: scaleX(0);
transform-origin: left;
transition: transform 0.5s ease;
}
.team-card:hover {
transform: translateY(-10px);
box-shadow: var(--shadow-lg);
border-color: transparent;
}
.team-card:hover::before {
transform: scaleX(1);
}
.team-card:nth-child(2) .team-card::before {
background: var(--gradient-secondary);
}
.team-card:nth-child(3) .team-card::before {
background: var(--gradient-accent);
}
.team-profile {
width: 150px;
height: 150px;
border-radius: 50%;
overflow: hidden;
margin-bottom: 1.5rem;
border: 5px solid white;
box-shadow: var(--shadow-md);
position: relative;
transition: transform 0.5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}
.team-card:hover .team-profile {
transform: scale(1.1);
}
.team-profile img {
width: 100%;
height: 100%;
object-fit: cover;
transition: var(--transition-normal);
}
.team-card:hover .team-profile img {
transform: scale(1.1);
}
.team-info h4 {
font-size: 1.5rem;
margin-bottom: 0.5rem;
color: var(--dark);
}
.team-role {
color: var(--primary);
font-weight: 600;
margin-bottom: 1rem;
font-size: 1.1rem;
}
.team-skills {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
justify-content: center;
margin-bottom: 1.5rem;
}
.team-skills .skill {
background: var(--light);
color: var(--primary);
border-radius: var(--radius-full);
padding: 0.35rem 0.75rem;
font-size: 0.85rem;
font-weight: 500;
transition: var(--transition-normal);
border: 1px solid var(--primary-light);
}
.team-card:hover .skill {
background: rgba(99, 102, 241, 0.1);
transform: translateY(-3px);
}
.team-contributions {
color: var(--gray);
margin-bottom: 1.5rem;
font-size: 0.95rem;
line-height: 1.6;
}
.team-social {
display: flex;
gap: 1rem;
margin-top: 1rem;
}
.social-icon {
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--light);
display: flex;
align-items: center;
justify-content: center;
color: var(--primary);
font-size: 1.2rem;
transition: var(--transition-normal);
border: 1px solid var(--gray-light);
}
.social-icon:hover {
background: var(--primary);
color: white;
transform: translateY(-5px) rotate(10deg);
box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}
.experience-badge {
position: absolute;
top: 20px;
right: 20px;
background: var(--gradient-secondary);
color: white;
padding: 0.5rem 1rem;
border-radius: var(--radius-full);
font-size: 0.85rem;
font-weight: 600;
box-shadow: var(--shadow-md);
z-index: 1;
animation: pulse 3s ease-in-out infinite;
}
/* ============================
FOOTER STYLES
============================= */
.footer {
background: rgba(15, 23, 42, 0.95);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
color: white;
padding: 4rem 0 1rem;
position: relative;
overflow: hidden;
}
.footer-content {
padding-bottom: 2rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand h3 {
font-family: 'Cabinet Grotesk', sans-serif;
font-weight: 700;
font-size: 1.8rem;
margin-bottom: 1rem;
color: white;
}
.footer-brand span {
background: var(--gradient-secondary);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.footer-brand p {
color: var(--gray-light);
margin-bottom: 1.5rem;
max-width: 300px;
}
.footer-social {
display: flex;
gap: 1rem;
margin-bottom: 2rem;
}
.footer-social a {
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.2rem;
transition: var(--transition-normal);
}
.footer-social a:hover {
background: var(--primary);
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}
.footer h5 {
color: white;
font-size: 1.2rem;
margin-bottom: 1.5rem;
position: relative;
padding-bottom: 0.75rem;
}
.footer h5::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 40px;
height: 2px;
background: var(--gradient-primary);
}
.footer-links, .footer-contact {
list-style: none;
padding: 0;
margin: 0;
}
.footer-links li, .footer-contact li {
margin-bottom: 0.75rem;
}
.footer-links a {
color: var(--gray-light);
transition: var(--transition-normal);
display: inline-block;
position: relative;
padding-left: 0;
}
.footer-links a::before {
content: '→';
position: absolute;
left: 0;
opacity: 0;
transform: translateX(-10px);
transition: var(--transition-normal);
}
.footer-links a:hover {
color: white;
padding-left: 20px;
}
.footer-links a:hover::before {
opacity: 1;
transform: translateX(0);
}
.footer-contact li {
display: flex;
align-items: center;
gap: 0.75rem;
color: var(--gray-light);
}
.footer-contact li i {
color: var(--primary-light);
font-size: 1.1rem;
}
.footer-bottom {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 1.5rem;
flex-wrap: wrap;
gap: 1rem;
}
.footer-bottom p {
color: var(--gray-light);
margin: 0;
font-size: 0.9rem;
}
.made-with {
display: flex;
align-items: center;
gap: 0.5rem;
}
.made-with i {
color: var(--accent);
animation: heartBeat 1.5s ease infinite;
}
@keyframes heartBeat {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
}