suna/backend/agent/workspace/styles.css

1256 lines
22 KiB
CSS

/* Base Styles */
:root {
--primary-color: #6366f1;
--primary-dark: #4f46e5;
--secondary-color: #10b981;
--accent-color: #f59e0b;
--dark-color: #1f2937;
--light-color: #f9fafb;
--gray-color: #6b7280;
--light-gray: #e5e7eb;
--border-radius: 8px;
--box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
--transition: all 0.3s ease;
/* Background and text colors */
--bg-color: #f9fafb;
--text-color: #1f2937;
--card-bg: #ffffff;
--header-bg: #ffffff;
--footer-bg: #1f2937;
--footer-text: #ffffff;
--code-bg: #282c34;
--code-text: #abb2bf;
}
/* Dark mode colors */
[data-theme="dark"] {
--primary-color: #818cf8;
--primary-dark: #6366f1;
--bg-color: #111827;
--text-color: #f9fafb;
--card-bg: #1f2937;
--gray-color: #9ca3af;
--light-gray: #374151;
--header-bg: #1f2937;
--footer-bg: #111827;
--footer-text: #f9fafb;
--box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
--code-bg: #1a1d23;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--bg-color);
transition: background-color 0.3s ease, color 0.3s ease;
}
a {
text-decoration: none;
color: inherit;
}
ul {
list-style: none;
}
img {
max-width: 100%;
height: auto;
display: block;
border-radius: var(--border-radius);
}
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
position: relative;
z-index: 2;
}
section {
padding: 100px 0;
position: relative;
}
.btn {
display: inline-block;
padding: 12px 24px;
border-radius: var(--border-radius);
font-weight: 600;
text-align: center;
cursor: pointer;
transition: var(--transition);
border: none;
font-size: 1rem;
}
.btn-primary {
background-color: var(--primary-color);
color: white;
}
.btn-primary:hover {
background-color: var(--primary-dark);
transform: translateY(-2px);
box-shadow: var(--box-shadow);
}
.btn-secondary {
background-color: transparent;
color: var(--text-color);
border: 1px solid var(--light-gray);
}
.btn-secondary:hover {
background-color: var(--light-gray);
transform: translateY(-2px);
}
/* Header Styles */
header {
background-color: var(--header-bg);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 100;
transition: background-color 0.3s ease;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
}
.nav-actions {
display: flex;
align-items: center;
gap: 20px;
}
.dark-mode-toggle {
background: none;
border: none;
cursor: pointer;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
color: var(--text-color);
background-color: var(--light-gray);
transition: var(--transition);
position: relative;
overflow: hidden;
}
.dark-mode-toggle:hover {
background-color: var(--gray-color);
}
.dark-mode-toggle .fa-sun {
position: absolute;
opacity: 0;
transform: translateY(20px);
transition: var(--transition);
}
.dark-mode-toggle .fa-moon {
position: absolute;
opacity: 1;
transform: translateY(0);
transition: var(--transition);
}
[data-theme="dark"] .dark-mode-toggle .fa-sun {
opacity: 1;
transform: translateY(0);
}
[data-theme="dark"] .dark-mode-toggle .fa-moon {
opacity: 0;
transform: translateY(-20px);
}
.logo {
font-size: 1.8rem;
font-weight: 700;
color: var(--primary-color);
}
.logo span {
color: var(--accent-color);
}
.nav-links {
display: flex;
gap: 30px;
}
.nav-links a {
font-weight: 500;
transition: var(--transition);
position: relative;
}
.nav-links a::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 0;
height: 2px;
background-color: var(--primary-color);
transition: var(--transition);
}
.nav-links a:hover {
color: var(--primary-color);
}
.nav-links a:hover::after {
width: 100%;
}
.mobile-menu-btn {
display: none;
background: none;
border: none;
cursor: pointer;
}
.mobile-menu-btn span {
display: block;
width: 25px;
height: 3px;
background-color: var(--text-color);
margin: 5px 0;
transition: var(--transition);
}
/* Hero Section */
.hero {
padding-top: 120px;
padding-bottom: 120px;
background-color: var(--bg-color);
position: relative;
overflow: hidden;
}
.hero-bg-elements {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
overflow: hidden;
}
.circle {
position: absolute;
border-radius: 50%;
opacity: 0.1;
}
.circle-1 {
width: 300px;
height: 300px;
background-color: var(--primary-color);
top: -100px;
right: -100px;
}
.circle-2 {
width: 200px;
height: 200px;
background-color: var(--secondary-color);
bottom: -50px;
left: 10%;
}
.square {
position: absolute;
width: 150px;
height: 150px;
background-color: var(--accent-color);
opacity: 0.1;
transform: rotate(45deg);
top: 40%;
right: 15%;
}
.dots {
position: absolute;
width: 200px;
height: 200px;
background-image: radial-gradient(var(--gray-color) 2px, transparent 2px);
background-size: 20px 20px;
opacity: 0.2;
}
.dots-1 {
top: 20%;
left: 5%;
}
.dots-2 {
bottom: 10%;
right: 5%;
}
.hero-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
align-items: center;
position: relative;
z-index: 2;
}
.badge {
display: inline-block;
background-color: rgba(99, 102, 241, 0.1);
color: var(--primary-color);
padding: 8px 16px;
border-radius: 20px;
font-weight: 600;
font-size: 0.9rem;
margin-bottom: 20px;
}
.hero-text h1 {
font-size: 3.5rem;
line-height: 1.2;
margin-bottom: 20px;
color: var(--text-color);
font-weight: 800;
}
.hero-text p {
font-size: 1.2rem;
color: var(--gray-color);
margin-bottom: 30px;
}
.hero-buttons {
display: flex;
gap: 15px;
}
.code-window {
background-color: var(--code-bg);
border-radius: 10px;
overflow: hidden;
box-shadow: var(--box-shadow);
max-width: 500px;
margin: 0 auto;
}
.code-header {
background-color: #21252b;
padding: 10px 15px;
display: flex;
align-items: center;
}
.dot {
width: 12px;
height: 12px;
border-radius: 50%;
margin-right: 8px;
}
.red {
background-color: #ff5f56;
}
.yellow {
background-color: #ffbd2e;
}
.green {
background-color: #27c93f;
}
.code-title {
margin-left: 10px;
color: #abb2bf;
font-size: 0.9rem;
font-family: monospace;
}
.code-content {
padding: 20px;
overflow-x: auto;
}
.code-content pre {
margin: 0;
font-family: 'Fira Code', monospace;
font-size: 0.9rem;
line-height: 1.5;
color: var(--code-text);
}
.tag {
color: #e06c75;
}
.attr {
color: #d19a66;
}
.value {
color: #98c379;
}
.comment {
color: #7f848e;
font-style: italic;
}
/* Section Header */
.section-header {
text-align: center;
margin-bottom: 60px;
}
.section-header h2 {
font-size: 2.5rem;
margin-bottom: 16px;
color: var(--text-color);
position: relative;
display: inline-block;
}
.section-header h2::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 3px;
background-color: var(--primary-color);
}
.section-header p {
font-size: 1.1rem;
color: var(--gray-color);
max-width: 600px;
margin: 0 auto;
}
/* Services Section */
.services {
background-color: var(--card-bg);
transition: background-color 0.3s ease;
}
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 30px;
}
.service-card {
background-color: var(--bg-color);
padding: 30px;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
text-align: center;
height: 100%;
display: flex;
flex-direction: column;
}
.service-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.service-icon {
width: 70px;
height: 70px;
background-color: rgba(99, 102, 241, 0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 20px;
}
.service-icon i {
font-size: 30px;
color: var(--primary-color);
}
.service-card h3 {
font-size: 1.5rem;
margin-bottom: 15px;
color: var(--text-color);
}
.service-card p {
color: var(--gray-color);
margin-bottom: 20px;
}
.service-features {
text-align: left;
margin-top: auto;
}
.service-features li {
margin-bottom: 10px;
display: flex;
align-items: center;
color: var(--gray-color);
}
.service-features i {
color: var(--secondary-color);
margin-right: 10px;
}
/* Skills Section */
.skills {
background-color: var(--bg-color);
transition: background-color 0.3s ease;
}
.skills-content {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 40px;
align-items: start;
}
.skills-text p {
margin-bottom: 20px;
color: var(--gray-color);
}
.skills-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.skill-category h3 {
font-size: 1.3rem;
margin-bottom: 20px;
color: var(--text-color);
position: relative;
display: inline-block;
padding-bottom: 10px;
}
.skill-category h3::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 40px;
height: 3px;
background-color: var(--primary-color);
}
.skill-items {
display: flex;
flex-direction: column;
gap: 15px;
}
.skill-item {
display: flex;
flex-direction: column;
gap: 5px;
}
.skill-name {
font-weight: 500;
color: var(--text-color);
}
.skill-bar {
height: 8px;
background-color: var(--light-gray);
border-radius: 4px;
overflow: hidden;
}
.skill-level {
height: 100%;
background-color: var(--primary-color);
border-radius: 4px;
width: 0;
animation: skill-fill 1.5s ease forwards;
}
@keyframes skill-fill {
0% {
width: 0;
}
100% {
width: var(--width, 0);
}
}
/* Projects Section */
.projects {
background-color: var(--card-bg);
transition: background-color 0.3s ease;
}
.projects-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 30px;
}
.project-card {
background-color: var(--bg-color);
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: var(--box-shadow);
transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.project-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.project-image {
position: relative;
overflow: hidden;
height: 200px;
}
.project-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.project-card:hover .project-image img {
transform: scale(1.1);
}
.project-overlay {
position: absolute;
top: 15px;
right: 15px;
}
.project-type {
background-color: var(--primary-color);
color: white;
padding: 5px 10px;
border-radius: 4px;
font-size: 0.8rem;
font-weight: 600;
}
.project-content {
padding: 20px;
}
.project-content h3 {
font-size: 1.3rem;
margin-bottom: 10px;
color: var(--text-color);
}
.project-content p {
color: var(--gray-color);
margin-bottom: 15px;
}
.project-tech {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.project-tech span {
background-color: rgba(99, 102, 241, 0.1);
color: var(--primary-color);
padding: 4px 10px;
border-radius: 4px;
font-size: 0.8rem;
font-weight: 500;
}
/* Workflow Section */
.workflow {
background-color: var(--bg-color);
transition: background-color 0.3s ease;
}
.workflow-steps {
max-width: 800px;
margin: 0 auto;
}
.workflow-step {
display: flex;
gap: 30px;
margin-bottom: 40px;
position: relative;
}
.workflow-step:last-child {
margin-bottom: 0;
}
.workflow-step:not(:last-child)::after {
content: '';
position: absolute;
top: 70px;
left: 30px;
width: 2px;
height: calc(100% - 30px);
background-color: var(--light-gray);
}
.step-number {
width: 60px;
height: 60px;
background-color: var(--primary-color);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
font-weight: 700;
flex-shrink: 0;
position: relative;
z-index: 2;
}
.step-content {
padding-top: 10px;
}
.step-content h3 {
font-size: 1.3rem;
margin-bottom: 10px;
color: var(--text-color);
}
.step-content p {
color: var(--gray-color);
}
/* Testimonials Section */
.testimonials {
background-color: var(--card-bg);
transition: background-color 0.3s ease;
padding: 100px 0;
}
.testimonial-slider {
position: relative;
max-width: 900px;
margin: 0 auto;
overflow: hidden;
}
.testimonial-track {
display: flex;
transition: transform 0.5s ease;
}
.testimonial-card {
min-width: 100%;
padding: 20px;
}
.testimonial-content {
background-color: var(--bg-color);
padding: 30px;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
margin-bottom: 20px;
position: relative;
transition: background-color 0.3s ease;
}
.testimonial-content::after {
content: '';
position: absolute;
bottom: -15px;
left: 30px;
border-width: 15px 15px 0;
border-style: solid;
border-color: var(--bg-color) transparent;
transition: border-color 0.3s ease;
}
.testimonial-content p {
font-size: 1.1rem;
line-height: 1.7;
color: var(--text-color);
font-style: italic;
position: relative;
}
.testimonial-content p::before {
content: '"';
font-size: 4rem;
color: var(--primary-color);
opacity: 0.2;
position: absolute;
top: -20px;
left: -15px;
font-family: Georgia, serif;
}
.testimonial-author {
display: flex;
align-items: center;
padding-left: 20px;
}
.testimonial-author img {
width: 60px;
height: 60px;
border-radius: 50%;
object-fit: cover;
border: 3px solid var(--primary-color);
}
.author-info {
margin-left: 15px;
}
.author-info h4 {
font-size: 1.1rem;
margin-bottom: 5px;
color: var(--text-color);
}
.author-info p {
color: var(--gray-color);
font-size: 0.9rem;
}
.testimonial-nav {
display: flex;
justify-content: center;
align-items: center;
margin-top: 40px;
}
.prev-btn,
.next-btn {
background-color: var(--primary-color);
color: white;
border: none;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: var(--transition);
}
.prev-btn:hover,
.next-btn:hover {
background-color: var(--primary-dark);
transform: translateY(-2px);
}
.testimonial-dots {
display: flex;
gap: 10px;
margin: 0 20px;
}
.dot {
width: 12px;
height: 12px;
border-radius: 50%;
background-color: var(--light-gray);
cursor: pointer;
transition: var(--transition);
}
.dot.active {
background-color: var(--primary-color);
transform: scale(1.2);
}
/* Contact Section */
.contact {
background-color: var(--bg-color);
transition: background-color 0.3s ease;
}
.contact-content {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 40px;
}
.contact-info {
display: flex;
flex-direction: column;
gap: 20px;
}
.info-card {
background-color: var(--card-bg);
padding: 20px;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
transition: background-color 0.3s ease, transform 0.3s ease;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.info-card:hover {
transform: translateY(-5px);
}
.info-icon {
width: 50px;
height: 50px;
background-color: rgba(99, 102, 241, 0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 15px;
}
.info-icon i {
font-size: 20px;
color: var(--primary-color);
}
.info-card h3 {
font-size: 1.2rem;
margin-bottom: 10px;
color: var(--text-color);
}
.info-card p {
color: var(--gray-color);
}
.contact-form {
background-color: var(--card-bg);
padding: 30px;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
transition: background-color 0.3s ease;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: var(--text-color);
}
.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
padding: 12px;
border: 1px solid var(--light-gray);
border-radius: var(--border-radius);
font-family: inherit;
font-size: 1rem;
transition: var(--transition);
background-color: var(--bg-color);
color: var(--text-color);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.form-group textarea {
resize: vertical;
}
/* Footer */
footer {
background-color: var(--footer-bg);
color: var(--footer-text);
padding: 80px 0 30px;
transition: background-color 0.3s ease;
}
.footer-content {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 40px;
margin-bottom: 60px;
}
.footer-logo a {
font-size: 1.8rem;
font-weight: 700;
color: white;
margin-bottom: 15px;
display: inline-block;
}
.footer-logo span {
color: var(--accent-color);
}
.footer-logo p {
color: var(--light-gray);
max-width: 300px;
}
.footer-links {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
}
.footer-column h4 {
font-size: 1.2rem;
margin-bottom: 20px;
color: white;
position: relative;
padding-bottom: 10px;
}
.footer-column h4::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 30px;
height: 2px;
background-color: var(--primary-color);
}
.footer-column a {
display: block;
margin-bottom: 10px;
color: var(--light-gray);
transition: var(--transition);
}
.footer-column a:hover {
color: white;
transform: translateX(5px);
}
.footer-bottom {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 30px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom p {
color: var(--light-gray);
}
.social-links {
display: flex;
gap: 15px;
}
.social-links a {
width: 40px;
height: 40px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
transition: var(--transition);
}
.social-links a:hover {
background-color: var(--primary-color);
transform: translateY(-3px);
}
/* Responsive Styles */
@media (max-width: 1024px) {
.hero-text h1 {
font-size: 2.8rem;
}
.skills-content {
grid-template-columns: 1fr;
}
.contact-content {
grid-template-columns: 1fr;
}
.contact-info {
flex-direction: row;
flex-wrap: wrap;
}
.info-card {
flex: 1;
min-width: 200px;
}
}
@media (max-width: 992px) {
.hero-content,
.about-content {
grid-template-columns: 1fr;
}
.hero-text {
text-align: center;
order: 1;
}
.hero-image {
order: 2;
margin-top: 40px;
}
.hero-buttons {
justify-content: center;
}
.badge {
margin: 0 auto 20px;
}
.workflow-step {
flex-direction: column;
gap: 15px;
align-items: center;
text-align: center;
}
.workflow-step:not(:last-child)::after {
left: 50%;
transform: translateX(-50%);
top: 60px;
height: 40px;
}
.step-content {
padding-top: 0;
}
}
@media (max-width: 768px) {
.nav-links {
display: none;
}
.mobile-menu-btn {
display: block;
}
.services-grid,
.projects-grid {
grid-template-columns: 1fr;
}
.footer-content {
grid-template-columns: 1fr;
}
.footer-links {
grid-template-columns: 1fr;
}
.footer-bottom {
flex-direction: column;
gap: 20px;
text-align: center;
}
.contact-info {
flex-direction: column;
}
}
/* Mobile Menu */
.mobile-nav {
display: none;
position: absolute;
top: 100%;
left: 0;
width: 100%;
background-color: var(--card-bg);
padding: 20px;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
z-index: 99;
transition: background-color 0.3s ease;
}
.mobile-nav.active {
display: block;
}
.mobile-nav a {
display: block;
padding: 10px 0;
border-bottom: 1px solid var(--light-gray);
font-weight: 500;
}
.mobile-nav a:last-child {
border-bottom: none;
}
/* Animation Classes */
.animated {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.5s ease, transform 0.5s ease;
}
.animated.fade-in {
opacity: 1;
transform: translateY(0);
}