:root {
    --background: hsl(0, 0%, 4%);
    --foreground: hsl(0, 0%, 95%);
    --card: hsl(0, 0%, 7%);
    --card-foreground: hsl(0, 0%, 95%);
    --primary: hsl(82, 85%, 55%);
    --primary-foreground: hsl(0, 0%, 4%);
    --muted: hsl(0, 0%, 12%);
    --muted-foreground: hsl(0, 0%, 55%);
    --accent: hsl(82, 85%, 55%);
    --accent-foreground: hsl(0, 0%, 4%);
    --border: hsl(0, 0%, 14%);
    --radius: 0.75rem;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
  
    border-color: var(--border);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Utilities */
.max-w-6xl { max-width: 72rem; margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.text-primary { color: var(--primary); }
.bg-primary { background-color: var(--primary); }
.text-muted-foreground { color: var(--muted-foreground); }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }

.text-glow {
    text-shadow: 0 0 30px hsla(82, 85%, 55%, 0.4), 0 0 60px hsla(82, 85%, 55%, 0.15);
}

.border-glow {
    box-shadow: 0 0 20px hsla(82, 85%, 55%, 0.15), inset 0 0 20px hsla(82, 85%, 55%, 0.05);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    height: 4rem;
    display: flex;
    align-items: center;
}

nav.scrolled {
    background-color: hsla(0, 0%, 4%, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-primary {
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-bg-glow-1 {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 24rem;
    height: 24rem;
    background-color: hsla(82, 85%, 55%, 0.05);
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
}

.hero-bg-glow-2 {
    position: absolute;
    bottom: 25%;
    right: 25%;
    width: 18rem;
    height: 18rem;
    background-color: hsla(82, 85%, 55%, 0.08);
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
}

.hero-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    margin-bottom: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    border: 1px solid hsla(82, 85%, 55%, 0.2);
    border-radius: 9999px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-btns {
        flex-direction: row;
    }
}

.btn-large {
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    border-color: hsla(82, 85%, 55%, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-8px) translateX(-50%);}
    60% {transform: translateY(-4px) translateX(-50%);}
}

/* Services Section */
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 1rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
/* Фоновое изображение карточки */
.service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
   
    filter: grayscale(50%) brightness(0.5); /* Делаем чуть темнее и серым изначально */
    transition: all 0.4s ease; /* Плавный переход для всех свойств */
    z-index: 0;
}

/* Эффект при наведении на карточку */
.service-card:hover .service-card-bg {
    opacity: 0.6; /* Становится намного заметнее */
    filter: grayscale(0%) brightness(1.2); /* Убираем серость и добавляем яркости */
    transform: scale(1.1); /* Слегка увеличиваем для эффекта глубины */
}
.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    border-color: hsla(82, 85%, 55%, 0.3);
    box-shadow: 0 0 30px hsla(82, 85%, 55%, 0.08);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background-color: hsla(82, 85%, 55%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Works Section */
.works-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .works-grid { grid-template-columns: repeat(2, 1fr); }
}

.work-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
}

.work-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Изначально видна на 60% */
    filter: brightness(0.85) saturate(0.95);
    transition: all 0.4s ease;
    z-index: 0;
}

.work-card:hover .work-card-bg {
    opacity: 0.95; /* Почти полная яркость */
    filter: brightness(1.35) saturate(1.5); /* Максимальная сочность */
    transform: scale(1.08);
}

.work-card:hover {
    border-color: hsla(82, 85%, 55%, 0.3);
}

.work-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.work-tag {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.work-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.work-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.work-card:hover .work-link {
    color: var(--primary);
}

/* About Section */
.about-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .about-grid { grid-template-columns: repeat(2, 1fr); }
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--muted-foreground);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

@media (min-width: 768px) {
    .stat-num { font-size: 2rem; }
}

.stat-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.about-image {
    position: relative;
}

.about-placeholder {
    aspect-ratio: 1/1;
    border-radius: 1rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 700;
    color: hsla(82, 85%, 55%, 0.2);
}
.about-logo {
    width: 100%;
    max-width: 24rem;
    aspect-ratio: 1/1;
    object-fit: contain;
    /* Добавляем неоновое свечение вокруг логотипа */
    filter: drop-shadow(0 0 2rem hsla(82, 85%, 55%, 0.3));
    transition: all 0.4s ease;
}

/* Эффект при наведении на логотип */
.about-logo:hover {
    filter: drop-shadow(0 0 3rem hsla(82, 85%, 55%, 0.6)) brightness(1.1);
    transform: scale(1.05); /* Легкое увеличение */
}
.about-glow {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    width: 6rem;
    height: 6rem;
    background-color: hsla(82, 85%, 55%, 0.1);
    border-radius: 1rem;
    filter: blur(32px);
}

/* Contact Section */
.contact-container {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.contact-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .contact-btns {
        flex-direction: row;
    }
}

.btn-contact {
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
    }
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-links a:hover {
    color: var(--primary);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
