/* 1. ПЕРЕМЕННЫЕ — Настраиваем цвета в одном месте */
:root {
    --bg-color: #0a0a0a;       /* Глубокий черный */
    --text-color: #ffffff;     /* Белый текст */
    --accent-color: #ff3e00;   /* Цвет точки в логотипе */
    --nav-height: 80px;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 2. БАЗОВЫЕ СБРОСЫ — Чтобы ничего не «ехало» */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif; /* Позаботься о подключении шрифта */
    line-height: 1.6;
}

/* 3. ШАПКА (HEADER) */
.main-header {
    height: var(--nav-height);
    width: 100%;
    position: fixed; /* Прилипает к верху при скролле */
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background-color: rgba(10, 10, 10, 0.8); /* Полупрозрачный фон */
    backdrop-filter: blur(10px); /* Эффект размытия стекла */
    z-index: 1000;
}

/* 4. ПАНЕЛЬ НАВИГАЦИИ (NAV) */
.nav-panel {
    width: 100%;
    display: flex;
    justify-content: space-between; /* Лого слева, список справа */
    align-items: center;
}

/* ЛОГОТИП */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-color); /* Точка станет яркой */
}

/* СПИСОК МЕНЮ */
.list-nav-panel {
    display: flex;
    list-style: none;
    gap: 40px; /* Расстояние между пунктами */
}

.list-nav-panel li {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.6;
}

/* Эффект при наведении на пункты меню */
.list-nav-panel li:hover {
    opacity: 1;
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* 5. ПОДГОТОВКА КОНТЕНТА */
body::before {
    content: "";
    display: block;
    height: var(--nav-height); /* Чтобы контент не заезжал под шапку */
}

/* ГЛАВНЫЙ ЭКРАН (HERO) */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* Вставь сюда крутую картинку или оставь градиент */
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)),
                url('https://unsplash.com') no-repeat center center/cover;
}

.hero-content {
    z-index: 10;
    padding: 0 20px;
}

/* Огромный заголовок */
.hero h1 {
    font-size: clamp(3rem, 10vw, 8rem); /* Шрифт подстроится под экран: минимум 3, максимум 8 */
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.reveal-text span {
    color: #ffffff !important; /* Делает текст полностью белым */
    -webkit-text-stroke: none !important; /* Убирает прозрачность и контур */
    text-stroke: none !important;
    display: block;
}


.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 5px;
    opacity: 0.5;
    text-transform: uppercase;
}

/* Анимация мышки (Scroll Indicator) */
.scroll-indicator {
    position: absolute; /* Относительно всей секции .hero */
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%); /* Центрируем ровно по середине */
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none; /* Чтобы мышка сквозь него кликала */
}


.mouse {
    width: 2px;
    height: 50px;
    background: linear-gradient(transparent, var(--text-color), transparent);
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}


.hero {
    /* ... твои старые стили ... */
    perspective: 1000px; /* Дает ощущение глубины 3D пространства */
}

.hero-content {
    /* ... твои старые стили ... */
    transition: transform 0.1s ease-out; /* Плавное затухание движения */
    transform-style: preserve-3d;
}


.services {
    padding: 100px 5%;
    background-color: var(--bg-color);
}

.section-title {
    font-size: 2rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--accent-color);
}

/* Сетка карточек */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Сама карточка */
.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.card-icon {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.service-card p {
    font-size: 0.9rem;
    opacity: 0.6;
    line-height: 1.6;
}

/* Эффект свечения */
.card-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%),
                rgba(255, 62, 0, 0.15) 0%,
                transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.service-card:hover {
    border-color: rgba(255, 62, 0, 0.5);
    transform: translateY(-10px);
}

.service-card:hover .card-glow {
    opacity: 1;
}


.main-footer {
    padding: 100px 5% 40px;
    background-color: #050505;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 40px;
}

.footer-content h2 span {
    color: var(--accent-color);
    font-style: italic;
}

.footer-email {
    font-size: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 5px;
    transition: var(--transition);
}

.footer-email:hover {
    letter-spacing: 3px;
    opacity: 0.8;
}

.footer-bottom {
    margin-top: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    letter-spacing: 2px;
    opacity: 0.4;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Используем em для медиа-запроса (768px / 16 = 48em)
   Это позволит сайту адаптироваться даже если пользователь изменил масштаб шрифта в браузере */
@media (max-width: 48em) {

    .main-header {
        padding: 0 1.5rem; /* Отступы в относительных единицах */
    }

    .hero h1 {
        /* Clamp сам справится, но можем чуть уменьшить межстрочный интервал */
        line-height: 1.1;
    }

    .services {
        padding: 4rem 1rem; /* Вертикальные отступы в rem, горизонтальные в rem */
    }

    .services-grid {
        /* Сетка сама перестроится благодаря auto-fit,
           но мы можем уменьшить расстояние между карточками */
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem; /* Внутренние отступы тоже в rem */
    }

    .main-footer {
        padding: 5rem 1.5rem 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

