:root {
    --dark-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent-blue: #0078f0;
    --section-spacing: 80px;
}

body {
    background: var(--dark-bg);
    color: #fff;
    line-height: 1.8;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--section-spacing);
    text-align: center;
    position: relative;
    padding-bottom: 5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-blue);
}

/* Портфолио */
.portfolio-card {
    background: var(--secondary-bg);
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.1);
}

.portfolio-card:hover {
    transform: translateY(-10px);
}

/* Технологии */
.tech-badge {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 12px 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Платформы */
.platform-badge {
    padding: 20px;
    background: var(--secondary-bg);
    border-radius: 12px;
    transition: all 0.3s;
}

.platform-badge:hover {
    background: var(--accent-blue);
}

/* Ценности */
.value-card {
    padding: 30px;
    background: var(--secondary-bg);
    border-radius: 15px;
    text-align: center;
}

.value-card1 i {
    color: var(--accent-blue);
}

/* Команда */
.team-card {
    background: var(--secondary-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.team-card {
    background: var(--secondary-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
    margin-bottom: 20px;
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid var(--accent-blue);
}

.team-card:hover {
    transform: translateY(-5px);
}

/* Форма */
.contact-form {
    background: rgba(0,0,0,0.5);
    border-radius: 20px;
    padding: 50px;
    margin-top: var(--section-spacing);
}

::placeholder {
    color: rgba(255,255,255,0.6) !important;
    opacity: 1;
}

.form-control {
    background: rgba(255,255,255,0.05);
    border: none;
    color: #fff !important;
    padding: 15px;
    transition: all 0.3s;
}

.form-control:focus {
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(0,120,240,0.2);
}

.form-control.is-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40,167,69,.25) !important;
}

.form-control.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220,53,69,.25) !important;
}

.btn-primary {
    background: var(--accent-blue);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #0060c0;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 30px;
    }
}

.custom-alert {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 120, 240, 0.95);
	color: white;
	padding: 2rem;
	border-radius: 15px;
	box-shadow: 0 0 20px rgba(0,0,0,0.3);
	z-index: 1000;
	display: none;
	animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translate(-50%, -40%); }
	to { opacity: 1; transform: translate(-50%, -50%); }
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	display: none;
	z-index: 999;
}

.footer {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.footer a {
    transition: all 0.3s ease;
    position: relative;
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #0078f0;
    transition: width 0.3s ease;
}

.footer a:hover {
    color: #0078f0 !important;
}

.footer a:hover::after {
    width: 100%;
}

.border-secondary {
    border-color: rgba(255,255,255,0.1) !important;
}
.values-section {
    background: radial-gradient(circle at center, #0a0a2a 0%, #000013 100%);
    position: relative;
    overflow: hidden;
}

.value-card1 {
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0,212,255,0.1);
    background: var(--secondary-bg);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    text-align: center;
}

.value-card1:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 25px 50px rgba(0,119,255,0.15);
}

.value-icon {
    font-size: 2.5rem;
    color: #00D4FF;
    text-shadow: 0 0 15px rgba(0,212,255,0.4);
    transition: all 0.3s ease;
}

.lab-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0,212,255,0.1) 0%, transparent 60%);
    top: 0;
    left: 0;
    pointer-events: none;
}

.parallax-layer {
    position: absolute;
    pointer-events: none;
}

.values-section::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    background: url('data:image/svg+xml,...');
    animation: cosmic-flow 120s linear infinite;
    opacity: 0.1;
}

@keyframes cosmic-flow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.project-carousel {
	max-width: 1200px;
	margin: 0 auto;
	border-radius: 15px;
	overflow: hidden;
}
        
.carousel-control-prev,
.carousel-control-next {
	width: 50px;
	height: 50px;
	background: rgba(180, 180, 180, 0.3);
	border-radius: 50%;
	top: 50%;
	transform: translateY(-50%);
}
        
.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }


.dynamic-bg {
  position: fixed;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
}

.wave {
  position: absolute;
  background: linear-gradient(
	45deg,
	rgba(0, 120, 240, 0.15) 0%,
	rgba(0, 120, 240, 0.05) 100%
  );
  border-radius: 40% 45% 42% 38%;
  animation: drift 25s infinite linear;
  filter: blur(25px);
}

.wave-1 {
  width: 150vw;
  height: 150vh;
  left: -25%;
  top: -25%;
  opacity: 0.8;
}

.wave-2 {
  width: 120vw;
  height: 120vh;
  right: -20%;
  bottom: -20%;
  animation-duration: 30s;
  animation-direction: reverse;
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
	radial-gradient(rgba(0, 120, 240, 0.15) 1px, transparent 0),
	radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 0);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  animation: particles 120s linear infinite;
}

@keyframes drift {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes particles {
  from { background-position: 0 0, 20px 20px; }
  to { background-position: 1000px 0, 1020px 20px; }
}

@media (max-width: 768px) {
  .wave {
	animation-duration: 40s;
	filter: blur(15px);
  }
}

.projects-section {
    background: rgba(0,0,0,0.5);
    border-radius: 15px; /* Скругление как у других блоков */
    padding: 2rem;
    margin-bottom: 4rem; /* Стандартный отступ снизу */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden; /* Для корректного скругления внутренних элементов */
}
/* Стиль для плейсхолдера */
img.lazy {
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    min-height: 300px;
}

img.lazy.loaded {
    background: none;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.text-small {
    font-size: 0.85rem;
    line-height: 1.4;
}

.form-check-input:checked {
    background-color: #0078f0;
    border-color: #0078f0;
}

.form-check-label a {
    color: #00b4ff;
    transition: color 0.3s;
}

.form-check-label a:hover {
    color: #ffffff;
    text-decoration: underline;
}