:root {
    --bg-dark: #050816;
    --bg-deep: #0A0F8F;
    --bg-tinted: #F3F4FF;
    --bg-soft: #EDEEFF;

    --primary: #5A0FC8;
    --accent: #B517FF;

    --text-dark: #0f172a;
    --text-light: #9ca3af;
}

.brand-gradient {
    background: linear-gradient(90deg, #0A0F8F, #5A0FC8, #B517FF);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--secondary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Hero Section with animated background */

.hero-shapes {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    background: linear-gradient(45deg, var(--primary), transparent);
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 50px); }
}

.hero-content { position: relative; z-index: 2; }

/* Modern Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.8) !important;
    padding: 1.5rem 0;
    transition: all 0.3s;
}
.navbar.scrolled { padding: 0.8rem 0; }

/* Glassmorphism Cards */
.service-card {
    border: none;
    padding: 3rem 2rem;
    border-radius: 24px;
    background: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Projects Section */
.project-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
    border: none;
}
.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.4s;
}
.project-card:hover .project-img { transform: scale(1.1); }
.project-card:hover .project-overlay { opacity: 1; }

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, #5A0FC8, #B517FF);
    border: none;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(181, 23, 255, 0.4);
}

.section-title {
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Stats Section */
.stats { background: var(--bg-light); padding: 100px 0; }
.stat-item h3 { font-size: 3rem; font-weight: 800; color: var(--primary); }

footer { background: var(--secondary); color: rgba(255,255,255,0.7); padding: 80px 0 30px; }

/* Custom form */
.form-control {
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
.form-control:focus {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

.text-primary {
    background: linear-gradient(90deg, #5A0FC8, #B517FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#services {
    min-height: 100vh;
    display: flex;
    align-items: center;

    background: linear-gradient(
        to bottom,
        rgba(181, 23, 255, 0.08),
        #F3F4FF
    );
}

#about {
    min-height: 100vh;
    display: flex;
    align-items: center;

    background: linear-gradient(
        to bottom,
        #F3F4FF,
        #EDEEFF
    );
}

#projects {
    min-height: 100vh;
    display: flex;
    align-items: center;

    background:
        radial-gradient(circle at 20% 30%, rgba(90,15,200,0.08), transparent),
        linear-gradient(to bottom, #EDEEFF, rgba(90,15,200,0.05));
}
#contact {
    min-height: 100vh;
    display: flex;
    align-items: center;

    background: radial-gradient(circle at 20% 30%, #0A0F8F, #050816 70%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* мощный glow */
#contact::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: #B517FF;
    filter: blur(180px);
    opacity: 0.4;
    top: -100px;
    left: -100px;
}

footer {
    background: #070a1c;
    color: #9ca3af;
}

section {
    position: relative;
    padding: 80px 0;
}

/* плавные переходы */


.btn-primary {
    background: linear-gradient(90deg, #5A0FC8, #B517FF);
    border: none;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(181, 23, 255, 0.4);
}

