SmartDoc / static /styles /index.css
chabane
Update the UI and main
180dc07
raw
history blame
6.06 kB
/* Base Styles */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lora:ital,wght@0,400..700;1,400..700&family=Roboto:ital,wght@0,100..900;1,100..900&family=Romanesco&display=swap");
:root {
--primary-color: #4f46e5;
--primary-dark: #4338ca;
--dark-blue: #0c042c;
--dark-blue-light: #1a0d51;
--dark-blue-lighter: #2b2059;
--secondary-color: #10b981;
--highlight-color: #64ffda;
--text-color: #e6f1ff;
--text-light: #a8b2d1;
--text-lightest: #ccd6f6;
--background-dark: #0c042c;
--background-card: #08031e;
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--border-radius: 8px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
html::-webkit-scrollbar {
width: 12px;
}
html::-webkit-scrollbar-track {
background: var(--background-card);
}
html::-webkit-scrollbar-thumb {
background-color: var(--highlight-color);
border-radius: var(--border-radius);
}
html::-webkit-scrollbar-thumb:hover {
background-color: var(--secondary-color);
}
body {
font-family: "Inter", sans-serif;
color: var(--text-color);
line-height: 1.6;
overflow-x: hidden;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
a {
text-decoration: none;
color: inherit;
}
ul {
list-style: none;
}
img {
max-width: 100%;
height: auto;
border-radius: var(--border-radius);
}
.btn-primary {
background-color: var(--primary-color);
color: white;
padding: 12px 24px;
border-radius: var(--border-radius);
font-weight: 500;
display: inline-block;
transition: background-color 0.3s ease;
}
.btn-primary:hover {
background-color: var(--primary-dark);
}
.btn-secondary {
background-color: transparent;
color: var(--primary-color);
padding: 12px 24px;
border-radius: var(--border-radius);
font-weight: 500;
display: inline-block;
border: 1px solid var(--primary-color);
transition: background-color 0.3s ease;
}
.btn-secondary:hover {
background-color: rgba(79, 70, 229, 0.1);
}
.section-header {
text-align: center;
margin-bottom: 60px;
}
.section-header h2 {
font-size: 2.5rem;
margin-bottom: 16px;
color: var(--text-color);
}
.underline {
height: 4px;
width: 70px;
background-color: var(--highlight-color);
margin: 0 auto;
}
header {
background-color: var(--dark-blue);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
position: sticky;
top: 0;
z-index: 100;
}
nav {
padding: 20px 0;
}
.logo a {
font-size: 2.5rem;
font-family: 'Romanesco';
font-weight: 700;
color: var(--highlight-color);
}
.hero {
padding: 100px 0;
background-image: linear-gradient(to bottom, var(--dark-blue), var(--dark-blue-light));
}
.hero .container {
display: flex;
align-items: center;
gap: 60px;
}
.hero-content {
flex: 1;
}
.hero-content h1 {
font-size: 3.5rem;
line-height: 1.2;
margin-bottom: 24px;
color: var(--text-color);
}
.hero-content p {
font-size: 1.25rem;
color: var(--text-light);
margin-bottom: 32px;
max-width: 90%;
}
.hero-buttons {
display: flex;
gap: 16px;
}
.hero-image {
flex: 1;
display: flex;
justify-content: flex-end;
}
.animate {
animation: show linear;
animation-timeline: view(90% auto);
}
@keyframes show {
from {
opacity: 0;
transform: translate(120px) scale(0.1);
}
to {
opacity: 1;
transform: translate(0) scale(1);
}
}
.about {
padding: 100px 0;
background-color: var(--dark-blue-light);
}
.about-content {
display: flex;
align-items: center;
gap: 60px;
}
.about-image {
flex: 1;
}
.about-text {
flex: 1;
}
.about-text h3 {
font-size: 2rem;
margin-bottom: 24px;
color: var(--text-color);
}
.about-text p {
margin-bottom: 16px;
color: var(--text-light);
}
.functions {
padding: 100px 0;
background-color: var(--dark-blue);
}
.functions-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.function-card {
background-color: var(--background-card);
padding: 40px 30px;
border-radius: var(--border-radius);
border: 1px solid var(--background-card);
box-shadow: var(--shadow);
transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.function-card:hover {
transform: translateY(-5px);
border-color: var(--highlight-color);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.function-icon {
margin-bottom: 24px;
display: flex;
justify-content: center;
}
.function-card h3 {
font-size: 1.5rem;
margin-bottom: 16px;
color: var(--text-color);
text-align: center;
}
.function-card p {
color: var(--text-light);
margin-bottom: 24px;
text-align: center;
}
.function-link {
display: block;
text-align: center;
color: var(--primary-color);
font-weight: 500;
transition: color 0.3s ease;
}
.function-link:hover {
color: var(--primary-dark);
}
footer {
background-color: var(--dark-blue-lighter);
color: white;
padding: 80px 0 30px;
}
.footer-content {
margin-bottom: 60px;
}
.footer-logo a {
font-size: 2rem;
font-family: 'Romanesco';
color: var(--highlight-color);
margin-bottom: 8px;
}
.footer-logo p {
color: var(--text-light);
}
.footer-bottom {
text-align: center;
padding-top: 30px;
border-top: 1px solid #374151;
color: var(--text-light);
}
@media (max-width: 992px) {
.hero .container {
flex-direction: column;
}
.hero-content {
text-align: center;
}
.hero-content p {
max-width: 100%;
}
.hero-buttons {
justify-content: center;
}
.about-content {
flex-direction: column;
}
.footer-content {
flex-direction: column;
gap: 40px;
}
.footer-links {
flex-wrap: wrap;
gap: 30px;
}
}
@media (max-width: 768px) {
.nav-links {
display: none;
}
.section-header h2 {
font-size: 2rem;
}
.hero-content h1 {
font-size: 2.5rem;
}
.about-text h3 {
font-size: 1.75rem;
}
}