Files
sst_site/.history/public/css/main_20251019182628.css
2025-10-19 18:27:00 +09:00

552 lines
10 KiB
CSS

/* SmartSolTech - Main Styles */
/* CSS Reset and Base */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: #1f2937;
}
/* Utility Classes */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}
.section-padding {
padding: 4rem 0;
}
/* Navigation */
.navbar {
background: rgba(255, 255, 255, 0.95);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
transition: all 0.3s ease;
}
.navbar-brand {
font-size: 1.5rem;
font-weight: bold;
color: #3b82f6;
text-decoration: none;
}
.navbar-nav {
display: flex;
gap: 2rem;
list-style: none;
}
.nav-link {
color: #6b7280;
text-decoration: none;
font-weight: 500;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
transition: all 0.3s ease;
}
.nav-link:hover,
.nav-link.active {
color: #3b82f6;
background-color: #eff6ff;
}
overflow: hidden;
}
.mobile-menu.show {
max-height: 500px;
}
/* Button Hover Effects */
.btn-primary {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
transition: all 0.3s ease;
transform: translateY(0);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}
/* Card Hover Effects */
.card-hover {
transition: all 0.3s ease;
transform: translateY(0);
}
.card-hover:hover {
transform: translateY(-8px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
/* Portfolio Grid */
.portfolio-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 2rem;
}
.portfolio-item {
border-radius: 1rem;
overflow: hidden;
background: white;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
transition: all 0.3s ease;
}
.portfolio-item:hover {
transform: translateY(-4px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.portfolio-image {
position: relative;
overflow: hidden;
aspect-ratio: 16/10;
}
.portfolio-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.portfolio-item:hover .portfolio-image img {
transform: scale(1.05);
}
.portfolio-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(139, 92, 246, 0.8));
opacity: 0;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}
.portfolio-item:hover .portfolio-overlay {
opacity: 1;
}
/* Service Cards */
.service-card {
background: white;
border-radius: 1rem;
padding: 2rem;
text-align: center;
transition: all 0.3s ease;
border: 2px solid transparent;
}
.service-card:hover {
border-color: var(--primary-color);
transform: translateY(-4px);
box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}
.service-icon {
width: 80px;
height: 80px;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1rem;
font-size: 2rem;
color: white;
transition: all 0.3s ease;
}
.service-card:hover .service-icon {
transform: scale(1.1) rotate(5deg);
}
/* Contact Form */
.contact-form {
background: white;
border-radius: 1rem;
padding: 2rem;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.form-group {
margin-bottom: 1.5rem;
}
.form-control {
width: 100%;
padding: 1rem;
border: 2px solid var(--border-color);
border-radius: 0.5rem;
font-size: 1rem;
transition: all 0.3s ease;
background: white;
}
.form-control:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
/* Calculator Styles */
.calculator-step {
animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateX(20px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.option-card {
border: 2px solid var(--border-color);
border-radius: 1rem;
padding: 1.5rem;
cursor: pointer;
transition: all 0.3s ease;
background: white;
}
.option-card:hover {
border-color: var(--primary-color);
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.option-card.selected {
border-color: var(--primary-color);
background: rgba(59, 130, 246, 0.05);
}
/* Progress Bar */
.progress-bar {
width: 100%;
height: 8px;
background: var(--border-color);
border-radius: 4px;
overflow: hidden;
margin-bottom: 2rem;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
transition: width 0.3s ease;
}
/* Hero Section Animations */
.hero-content {
animation: heroFadeIn 1s ease-out;
}
@keyframes heroFadeIn {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Parallax Effect */
.parallax {
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
/* Scroll Animations */
.fade-in-up {
opacity: 0;
transform: translateY(30px);
transition: all 0.8s ease;
}
.fade-in-up.animate {
opacity: 1;
transform: translateY(0);
}
/* Typography */
.gradient-text {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* Status Badges */
.status-badge {
padding: 0.25rem 0.75rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.status-new {
background: rgba(239, 68, 68, 0.1);
color: #dc2626;
}
.status-in-progress {
background: rgba(245, 158, 11, 0.1);
color: #d97706;
}
.status-completed {
background: rgba(16, 185, 129, 0.1);
color: #059669;
}
/* Responsive Design */
@media (max-width: 768px) {
.portfolio-grid {
grid-template-columns: 1fr;
}
.hero-title {
font-size: 2.5rem;
}
.service-card {
padding: 1.5rem;
}
.calculator-step {
padding: 1rem;
}
}
/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
:root {
--text-dark: #f9fafb;
--text-light: #d1d5db;
--bg-light: #1f2937;
--border-color: #374151;
}
body {
background-color: #111827;
color: var(--text-dark);
}
.card-hover, .service-card, .contact-form, .option-card {
background: #1f2937;
border-color: var(--border-color);
}
.form-control {
background: #374151;
border-color: #4b5563;
color: white;
}
.form-control:focus {
border-color: var(--primary-color);
}
}
/* Print Styles */
@media print {
.navbar, .footer, .contact-form, .mobile-menu {
display: none !important;
}
body {
font-size: 12pt;
line-height: 1.5;
}
.portfolio-item, .service-card {
break-inside: avoid;
margin-bottom: 1rem;
}
}
/* Accessibility */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* Focus styles for better accessibility */
.form-control:focus,
.btn:focus,
.option-card:focus {
outline: 2px solid var(--primary-color);
outline-offset: 2px;
}
/* Loading States */
.btn-loading {
position: relative;
color: transparent;
}
.btn-loading::after {
content: '';
position: absolute;
width: 16px;
height: 16px;
top: 50%;
left: 50%;
margin-left: -8px;
margin-top: -8px;
border: 2px solid transparent;
border-top-color: currentColor;
border-radius: 50%;
animation: spin 1s linear infinite;
}
/* Calculator Styles */
.calculator-step {
display: none;
}
.calculator-step.active {
display: block;
}
.service-option,
.complexity-option,
.timeline-option {
cursor: pointer;
transition: all 0.3s ease;
position: relative;
}
.service-option:hover,
.complexity-option:hover,
.timeline-option:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}
.service-option.selected,
.complexity-option.selected,
.timeline-option.selected {
border-color: #3B82F6 !important;
background-color: #EBF8FF !important;
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}
.service-option.selected::after,
.complexity-option.selected::after,
.timeline-option.selected::after {
content: '✓';
position: absolute;
top: 0.5rem;
right: 0.5rem;
width: 24px;
height: 24px;
background: #3B82F6;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
font-weight: bold;
}
/* Price Display Animation */
#final-price {
animation: priceReveal 0.8s ease-in-out;
}
@keyframes priceReveal {
0% {
opacity: 0;
transform: scale(0.8);
}
50% {
transform: scale(1.1);
}
100% {
opacity: 1;
transform: scale(1);
}
}
/* Calculator Progress Bar */
.calculator-progress {
width: 100%;
height: 4px;
background: #e5e7eb;
border-radius: 2px;
margin-bottom: 2rem;
overflow: hidden;
}
.calculator-progress-bar {
height: 100%;
background: linear-gradient(90deg, #3B82F6, #8B5CF6);
border-radius: 2px;
transition: width 0.3s ease;
width: 33.33%;
}
.calculator-progress-bar.step-2 {
width: 66.66%;
}
.calculator-progress-bar.step-3 {
width: 100%;
}
/* Calculator Mobile Improvements */
@media (max-width: 768px) {
.service-option,
.complexity-option,
.timeline-option {
margin-bottom: 1rem;
}
#final-price {
font-size: 2.5rem;
}
}