Files
smartsoltech_site/smartsoltech/staticfiles/assets/css/modern-styles.css
Andrew K. Choi e7d6d5262d
Some checks failed
continuous-integration/drone/push Build is failing
Добавлена система проектов с автоматическим ресайзом изображений и адаптивным дизайном
- Удалена старая система портфолио (PortfolioCategory, PortfolioItem)
- Расширена модель Project: slug, categories (M2M), thumbnail, media files, meta fields
- Объединены категории: ProjectCategory удалена, используется общая Category
- Автоматический ресайз thumbnail до 600x400px с умным кропом по центру
- Создан /projects/ - страница списка проектов с фильтрацией по категориям
- Создан /project/<pk>/ - детальная страница проекта с галереей Swiper
- Адаптивный дизайн: 3 карточки в ряд (десктоп), 2 (планшет), 1 (мобильный)
- Параллакс-эффект на изображениях при наведении
- Lazy loading для оптимизации загрузки
- Фильтры категорий в виде пилюль как на странице услуг
- Компактные карточки с фиксированной шириной
- Кликабельные проекты в service_detail с отображением всех медиа
2025-11-26 09:44:14 +09:00

1125 lines
20 KiB
CSS

/* Modern IT Company Design - SmartSolTech */
:root {
/* Light Theme Colors */
--primary-color: #6366f1;
--primary-dark: #4f46e5;
--secondary-color: #8b5cf6;
--accent-color: #06d6a0;
--text-dark: #1f2937;
--text-light: #6b7280;
--bg-light: #ffffff;
--bg-gray: #f9fafb;
--border-color: #e5e7eb;
--shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
--gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
--gradient-accent: linear-gradient(135deg, #06d6a0 0%, #34d399 100%);
/* Dark Theme Colors */
--dark-bg: #0f172a;
--dark-bg-secondary: #1e293b;
--dark-text: #f8fafc;
--dark-text-secondary: #cbd5e1;
--dark-border: #334155;
}
/* Dark theme */
[data-theme="dark"] {
--text-dark: var(--dark-text);
--text-light: var(--dark-text-secondary);
--bg-light: var(--dark-bg);
--bg-gray: var(--dark-bg-secondary);
--border-color: var(--dark-border);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
line-height: 1.6;
color: var(--text-dark);
background-color: var(--bg-light);
transition: background-color 0.3s ease, color 0.3s ease;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
line-height: 1.2;
margin-bottom: 1rem;
}
h1 {
font-size: 3.75rem;
font-weight: 800;
background: var(--gradient-primary);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
h2 {
font-size: 2.5rem;
color: var(--text-dark);
}
h3 {
font-size: 1.875rem;
}
p {
font-size: 1.125rem;
line-height: 1.7;
color: var(--text-light);
margin-bottom: 1.5rem;
}
/* Buttons */
.btn-modern {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 1rem 2rem;
font-size: 1rem;
font-weight: 600;
border: none;
border-radius: 12px;
text-decoration: none;
transition: all 0.3s ease;
cursor: pointer;
position: relative;
overflow: hidden;
}
.btn-primary-modern {
background: var(--gradient-primary);
color: white;
box-shadow: var(--shadow);
}
.btn-primary-modern:hover {
transform: translateY(-2px);
box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
color: white;
}
.btn-secondary-modern {
background: var(--bg-light);
color: var(--text-dark);
border: 2px solid var(--border-color);
}
.btn-secondary-modern:hover {
background: var(--bg-gray);
border-color: var(--primary-color);
color: var(--primary-color);
}
/* Cards */
.card-modern {
background: var(--bg-light);
border-radius: 20px;
border: 1px solid var(--border-color);
box-shadow: var(--shadow);
transition: all 0.3s ease;
overflow: hidden;
}
.card-modern:hover {
transform: translateY(-8px);
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.card-modern .card-body {
padding: 2rem;
}
/* Navigation */
.navbar-modern {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border-color);
padding: 1rem 0;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
transition: all 0.3s ease;
}
.navbar-modern.scrolled {
background: rgba(255, 255, 255, 0.98);
box-shadow: var(--shadow);
}
.navbar-brand-modern {
font-size: 1.5rem;
font-weight: 800;
background: var(--gradient-primary);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
text-decoration: none;
}
.nav-link-modern {
font-weight: 500;
color: var(--text-light);
padding: 0.5rem 1rem;
border-radius: 8px;
transition: all 0.3s ease;
text-decoration: none;
}
.nav-link-modern:hover,
.nav-link-modern.active {
color: var(--primary-color);
background: rgba(99, 102, 241, 0.1);
}
/* Hero Section */
.hero-modern {
padding: 8rem 0 4rem;
background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
position: relative;
overflow: hidden;
}
.hero-modern::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="%236366f1" opacity="0.1"/><circle cx="75" cy="75" r="0.3" fill="%238b5cf6" opacity="0.1"/><circle cx="75" cy="25" r="0.4" fill="%2306d6a0" opacity="0.1"/><circle cx="25" cy="75" r="0.6" fill="%236366f1" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
opacity: 0.5;
}
/* Services Grid */
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 2rem;
margin-top: 3rem;
}
.service-card {
background: var(--bg-light);
border-radius: 20px;
padding: 2.5rem;
border: 1px solid var(--border-color);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.service-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: var(--gradient-primary);
transform: translateX(-100%);
transition: transform 0.3s ease;
}
.service-card:hover::before {
transform: translateX(0);
}
.service-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.service-icon {
width: 60px;
height: 60px;
border-radius: 16px;
background: var(--gradient-primary);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1.5rem;
color: white;
font-size: 1.5rem;
}
/* Animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes float {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
}
.animate-fade-in-up {
animation: fadeInUp 0.6s ease-out forwards;
}
.animate-float {
animation: float 3s ease-in-out infinite;
}
/* Responsive Design */
@media (max-width: 768px) {
h1 {
font-size: 2.5rem;
}
h2 {
font-size: 2rem;
}
.hero-modern {
padding: 6rem 0 3rem;
}
.services-grid {
grid-template-columns: 1fr;
}
.service-card {
padding: 2rem;
}
}
/* Utility Classes */
.text-gradient {
background: var(--gradient-primary);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.bg-gradient {
background: var(--gradient-primary);
}
.border-gradient {
border: 2px solid transparent;
background: linear-gradient(var(--bg-light), var(--bg-light)) padding-box,
var(--gradient-primary) border-box;
}
.container-modern {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}
.section-padding {
padding: 6rem 0;
}
.mb-large {
margin-bottom: 4rem;
}
.text-center {
text-align: center;
}
/* Loading Animation */
#loading-screen {
transition: opacity 0.3s ease-out;
}
#loading-screen.hidden {
opacity: 0 !important;
pointer-events: none !important;
}
.loading-spinner {
width: 40px;
height: 40px;
border: 4px solid var(--border-color);
border-top: 4px solid var(--primary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Success Checkmark Animation */
.success-checkmark {
width: 80px;
height: 80px;
border-radius: 50%;
display: block;
stroke-width: 2;
stroke: #4CAF50;
stroke-miterlimit: 10;
margin: 10px auto;
position: relative;
}
.success-checkmark.animate .icon-circle {
stroke-dasharray: 166;
stroke-dashoffset: 166;
stroke-width: 2;
stroke-miterlimit: 10;
stroke: #4CAF50;
fill: none;
animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.success-checkmark.animate .icon-line {
stroke-dasharray: 48;
stroke-dashoffset: 48;
animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}
.success-checkmark.animate .icon-line.line-tip {
animation-delay: 1.1s;
}
.success-checkmark.animate .icon-line.line-long {
animation-delay: 1.2s;
}
.success-checkmark .icon-circle {
width: 80px;
height: 80px;
position: absolute;
border-radius: 50%;
border: 2px solid #4CAF50;
background-color: rgba(76, 175, 80, 0.1);
}
.success-checkmark .icon-line {
height: 2px;
background-color: #4CAF50;
display: block;
border-radius: 2px;
position: absolute;
z-index: 10;
}
.success-checkmark .icon-line.line-tip {
top: 46px;
left: 14px;
width: 25px;
transform: rotate(45deg);
animation: icon-line-tip 0.75s;
}
.success-checkmark .icon-line.line-long {
top: 38px;
right: 8px;
width: 47px;
transform: rotate(-45deg);
animation: icon-line-long 0.75s;
}
.success-checkmark .icon-fix {
top: 8px;
width: 5px;
left: 26px;
z-index: 1;
height: 85px;
position: absolute;
transform: rotate(-45deg);
background-color: #fff;
}
@keyframes stroke {
100% {
stroke-dashoffset: 0;
}
}
@keyframes icon-line-tip {
0% {
width: 0;
left: 1px;
top: 19px;
}
54% {
width: 0;
left: 1px;
top: 19px;
}
70% {
width: 50px;
left: -8px;
top: 37px;
}
84% {
width: 17px;
left: 21px;
top: 48px;
}
100% {
width: 25px;
left: 14px;
top: 45px;
}
}
@keyframes icon-line-long {
0% {
width: 0;
right: 46px;
top: 54px;
}
65% {
width: 0;
right: 46px;
top: 54px;
}
84% {
width: 55px;
right: 0px;
top: 35px;
}
100% {
width: 47px;
right: 8px;
top: 38px;
}
}
/* Video Support Styles */
.hero-video {
transition: opacity 0.3s ease;
}
.service-video {
transition: transform 0.3s ease;
}
.service-video:hover {
transform: scale(1.05);
}
.carousel-item {
transition: transform 0.6s ease-in-out;
}
.hero-bg {
position: relative;
overflow: hidden;
}
.hero-bg::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(45deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
z-index: 1;
}
/* Video Loading States */
.video-loading {
background: linear-gradient(45deg, #f3f4f6, #e5e7eb);
background-size: 400% 400%;
animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
/* Video Controls */
.video-controls {
position: absolute;
bottom: 20px;
right: 20px;
z-index: 2;
}
.video-play-btn {
background: rgba(255, 255, 255, 0.9);
border: none;
border-radius: 50%;
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
color: var(--primary-color);
font-size: 18px;
transition: all 0.3s ease;
}
.video-play-btn:hover {
background: rgba(255, 255, 255, 1);
transform: scale(1.1);
}
/* Responsive Video */
@media (max-width: 768px) {
.hero-video,
.service-video {
height: 300px !important;
}
.carousel-item {
min-height: 400px;
}
}
/* Hero Container Styles */
.hero-modern {
padding: 0;
background: var(--bg-light);
}
.hero-container {
background: var(--gradient-primary);
border-radius: 24px;
overflow: hidden;
box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
position: relative;
margin: 1.5rem auto;
max-width: 1200px;
}
.hero-bg {
position: relative;
min-height: 600px;
}
.hero-video,
.hero-bg img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 1;
}
.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(99, 102, 241, 0.8) 0%, rgba(139, 92, 246, 0.6) 100%);
z-index: 2;
}
.hero-content {
position: relative;
z-index: 3;
padding: 4rem 2rem;
display: flex;
align-items: center;
min-height: 600px;
}
/* Custom Carousel Indicators - Pill System */
.carousel-indicators-container {
position: absolute;
bottom: 2.5rem;
left: 50%;
transform: translateX(-50%);
z-index: 4;
}
.outer-pill {
position: relative;
display: inline-flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem;
background: rgba(0, 0, 0, 0.3);
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
border-radius: 50px;
border: 1px solid rgba(255, 255, 255, 0.15);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
min-height: 50px;
transition: none;
overflow: visible;
}
/* Удаляем старую структуру inner-pill */
.pill-indicators {
display: flex;
gap: 0.75rem;
align-items: center;
flex-wrap: nowrap;
white-space: nowrap;
}
.pill-indicator {
height: 36px;
border-radius: 18px;
border: 2px solid rgba(255, 255, 255, 0.4);
background: rgba(255, 255, 255, 0.1);
position: relative;
z-index: 1;
transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1),
padding 0.8s cubic-bezier(0.23, 1, 0.32, 1),
border-color 0.3s ease;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
width: 36px;
overflow: visible;
transform-origin: center;
flex-shrink: 0;
}
.pill-indicator.active {
border: 2px solid rgba(255, 255, 255, 0.8);
background: rgba(255, 255, 255, 0.1);
width: fit-content;
min-width: 36px;
padding: 0 1rem;
border-radius: 18px;
}
.pill-indicator:not(.active):hover {
border-color: rgba(255, 255, 255, 0.7);
background: rgba(255, 255, 255, 0.2);
transform: scale(1.05);
}
.pill-indicator::before {
content: '';
width: 8px;
height: 8px;
background: rgba(255, 255, 255, 0.8);
border-radius: 50%;
transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
display: block;
flex-shrink: 0;
position: absolute;
transform-origin: center;
opacity: 1;
z-index: 1;
}
.pill-indicator.active::before {
opacity: 0;
transform: scale(0);
}
.pill-indicator:hover:not(.active)::before {
background: rgba(255, 255, 255, 1);
transform: scale(1.2);
}
.pill-indicator-title {
font-size: 0.875rem;
font-weight: 600;
color: rgba(255, 255, 255, 0.95);
white-space: nowrap;
opacity: 0;
transform: scale(0.8);
transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.2s,
transform 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
margin: 0;
position: relative;
transform-origin: center;
z-index: 2;
}
.pill-indicator.active .pill-indicator-title {
opacity: 1;
transform: scale(1);
}
/* Плавная анимация как вода */
.pill-indicator:not(.active):hover {
border-color: rgba(255, 255, 255, 0.7);
background: rgba(255, 255, 255, 0.2);
transform: scale(1.05);
transition: all 0.3s ease;
}
/* Новые стили для расширенной главной страницы */
.project-card {
transition: all 0.3s ease;
}
.project-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}
.project-image {
position: relative;
overflow: hidden;
height: 200px;
}
.project-image img {
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.project-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s ease;
}
.project-card:hover .project-overlay {
opacity: 1;
}
.project-card:hover .project-image img {
transform: scale(1.1);
}
.blog-card {
transition: all 0.3s ease;
}
.blog-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}
.blog-image {
height: 200px;
overflow: hidden;
}
.blog-image img {
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.blog-card:hover .blog-image img {
transform: scale(1.05);
}
.news-card {
transition: all 0.3s ease;
}
.news-card:hover {
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}
.career-feature {
transition: all 0.3s ease;
}
.career-feature:hover {
transform: translateY(-5px);
}
.career-icon {
transition: all 0.3s ease;
}
.career-feature:hover .career-icon {
transform: scale(1.1);
}
.career-stats {
transition: all 0.3s ease;
}
.career-stats:hover {
transform: scale(1.05);
}
.hover-lift {
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.hover-lift:hover {
transform: translateY(-8px);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
/* Carousel Controls */
.hero-container {
position: relative;
}
.carousel-control-prev,
.carousel-control-next {
position: absolute;
width: 50px;
height: 50px;
background: rgba(0, 0, 0, 0.3);
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 50%;
top: 50%;
transform: translateY(-50%);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
opacity: 0.8;
z-index: 5;
}
.carousel-control-prev {
left: 1.5rem;
}
.carousel-control-next {
right: 1.5rem;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
background: rgba(0, 0, 0, 0.5);
transform: translateY(-50%) scale(1.1);
opacity: 1;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
/* Hero Text Styles */
.hero-title {
font-size: 3.5rem;
font-weight: 800;
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
margin-bottom: 1.5rem;
line-height: 1.1;
}
.hero-subtitle {
font-size: 1.5rem;
font-weight: 500;
color: rgba(255, 255, 255, 0.9);
margin-bottom: 1.5rem;
}
.hero-description {
font-size: 1.25rem;
color: rgba(255, 255, 255, 0.8);
margin-bottom: 2.5rem;
line-height: 1.6;
}
/* Responsive Design */
@media (max-width: 768px) {
.hero-container {
border-radius: 16px;
margin: 1rem;
}
.hero-content {
padding: 2rem 1.5rem;
min-height: 500px;
}
.hero-title {
font-size: 2.5rem;
}
.hero-subtitle {
font-size: 1.25rem;
}
.hero-description {
font-size: 1.125rem;
}
.carousel-indicators-container {
bottom: 8px;
}
.outer-pill {
gap: 0.5rem;
padding: 0.5rem;
}
.pill-indicators {
gap: 0.5rem;
}
.pill-indicator.active {
padding: 0 0.75rem;
font-size: 0.8rem;
}
.pill-indicator-title {
font-size: 0.8rem;
}
.pill-indicator {
width: 32px;
height: 32px;
}
.inner-pill {
height: 32px;
width: 32px;
}
.inner-pill.active {
min-width: 100px;
}
.pill-title {
font-size: 0.75rem;
}
}
/* Дополнительные эффекты для пилюль */
.inner-pill::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(90deg,
transparent 0%,
rgba(99, 102, 241, 0.2) 50%,
transparent 100%);
border-radius: 25px;
opacity: 0;
animation: pillShimmer 3s infinite;
}
.outer-pill.expanded .inner-pill::before {
opacity: 1;
}
/* Эффект пульсации для внешней пилюли */
.outer-pill::after {
content: '';
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
background: linear-gradient(45deg,
rgba(99, 102, 241, 0.3) 0%,
rgba(139, 92, 246, 0.3) 100%);
border-radius: 52px;
opacity: 0;
z-index: -1;
transition: opacity 0.3s ease;
}
.outer-pill.expanded::after {
opacity: 1;
animation: pillGlow 2s infinite alternate;
}
@keyframes pillShimmer {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(100%);
}
}
@keyframes pillGlow {
0% {
opacity: 0.3;
}
100% {
opacity: 0.7;
}
}
@keyframes shimmerSlide {
0% {
transform: translateX(-100%);
opacity: 0;
}
50% {
opacity: 1;
}
100% {
transform: translateX(100%);
opacity: 0;
}
}
/* Animations */
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
@keyframes ripple {
0% {
transform: translate(-50%, -50%) scale(1);
opacity: 1;
}
100% {
transform: translate(-50%, -50%) scale(2);
opacity: 0;
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-fade-in-up {
animation: fadeInUp 0.8s ease-out;
}