﻿/* ========================
   1. БАЗОВЫЕ НАСТРОЙКИ
   ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Основной шрифт теперь Exo 2 — технологичный и читаемый */
    font-family: 'Exo 2', sans-serif; 
    line-height: 1.6;
    color: #333;
    
    /* Текстурный фон */
    background-color: #f4f4f4;
    background-image: url('images/bg.jpg'); 
    background-repeat: repeat;
    background-size: auto; 
}

/* Глобальный контейнер */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================
   2. ШАПКА (HEADER)
   ======================== */
.header {
    background: rgba(44, 62, 80, 0.95); /* Полупрозрачный темно-синий */
    backdrop-filter: blur(10px); /* Размытие фона под меню */
    color: #fff;
    padding: 1rem 0;
    position: sticky; 
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Тонкая линия снизу */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent; 
}

.logo {
    /* Логотип делаем шрифтом Orbitron для стиля */
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 900; /* Самый жирный */
    color: #2ecc71;
    letter-spacing: 1px; /* Чуть раздвинем буквы */
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.4); /* Легкое свечение */
}

.nav a, .lang-switch a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase; /* Все буквы заглавные */
    letter-spacing: 0.5px;
}

.nav a:hover, .lang-switch a:hover {
    color: #2ecc71;
    text-shadow: 0 0 5px rgba(46, 204, 113, 0.6);
}

.nav a.current {
    color: #2ecc71;
    border-bottom: 2px solid #2ecc71;
    padding-bottom: 5px;
}

.lang-switch .active {
    font-weight: bold;
    color: #2ecc71;
    cursor: default;
}

/* ========================
   3. ГЛАВНЫЙ ЭКРАН (HERO)
   ======================== */
.hero {
    position: relative;
    height: 80vh;
    background-image: url('images/hero-desktop.webp'); 
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-color: #333;
    
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Градиентное затемнение: сверху темнее, чтобы меню читалось */
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.6) 100%);
}

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

.hero h1 {
    font-family: 'Orbitron', sans-serif; /* Хайтек заголовок */
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8); /* Тень для читаемости */
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    font-weight: 300;
}

/* Кнопка */
.btn {
    display: inline-block;
    background: #2ecc71;
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px; /* Круглые края */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4); /* Зеленое свечение */
    font-family: 'Exo 2', sans-serif;
}

.btn:hover {
    background: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

/* ========================
   4. GLASSMORPHISM (СТЕКЛЯННЫЕ КАРТОЧКИ)
   ======================== */
.services .container, 
.portfolio .container, 
.footer .container {
    /* Эффект матового стекла */
    background-color: rgba(255, 255, 255, 0.85); /* Белый, 85% непрозрачности */
    backdrop-filter: blur(12px); /* Размытие фона под карточкой */
    -webkit-backdrop-filter: blur(12px); /* Для Safari */
    
    padding: 3rem;
    border-radius: 15px;
    
    /* Тонкая белая рамка для эффекта стекла */
    border: 1px solid rgba(255, 255, 255, 0.5);
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Мягкая тень */
    margin-top: 3rem;    
    margin-bottom: 3rem; 
}

/* ========================
   5. СТИЛИ ДЛЯ КОНТЕНТА
   ======================== */
.section-padding { padding: 2rem 0; }

.section-title {
    text-align: center;
    font-family: 'Orbitron', sans-serif; /* Хайтек заголовок */
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    position: relative;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #2ecc71;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Сетки */
.services-grid, .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem;
}

/* Карточки внутри секций */
.service-card, .project-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card { padding: 2rem; text-align: center; }
.project-card { border: none; }

.service-card:hover, .project-card:hover { 
    transform: translateY(-7px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-card:hover { border-bottom: 4px solid #2ecc71; }

.icon { font-size: 3.5rem; margin-bottom: 1.5rem; }

.service-card h3, .project-info h3 { 
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    margin-bottom: 0.8rem; 
    color: #2c3e50; 
    font-size: 1.4rem;
}

.service-card p, .project-info p { 
    color: #555; 
    font-size: 1rem; 
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Эффект зума картинки при наведении */
.project-card:hover img {
    transform: scale(1.05);
}

.project-info { padding: 2rem; border-top: none; }

/* ========================
   6. ПОДВАЛ (FOOTER)
   ======================== */
.footer {
    background: transparent;
    padding-top: 0;
    margin-top: auto;
    text-align: center;
}
.footer p { color: #333; font-weight: bold; }

/* ========================
   7. АДАПТИВ (MOBILE)
   ======================== */
@media (max-width: 768px) {
    .hero {
        background-image: url('images/hero-mobile.webp'); 
        height: 65vh; 
    }

    .header .container {
        flex-direction: column;
        text-align: center;
    }

    .nav {
        margin: 15px 0;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .nav a { 
        margin-left: 0; 
        display: block; 
        padding: 5px; 
        font-size: 1.1rem; 
    }

    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; padding: 0 10px; }
    
    .services .container, .portfolio .container {
        padding: 1.5rem; /* Меньше отступы на телефоне */
    }
}