/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* --- CSS Переменные (для легкой смены палитры) --- */
:root {
    --primary-dark: #0a0c1e; /* Темно-синий фон */
    --secondary-dark: #1a1d36; /* Фон для карточек */
    --text-primary: #e0e0e0; /* Основной текст */
    --text-secondary: #a0a0c0; /* Второстепенный текст */
    --accent-blue: #00f6ff;
    --accent-green: #39ff14;
    --accent-purple: #9d00ff;
    --border-color: rgba(0, 246, 255, 0.2);
}

/* --- Общие стили --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: #fff;
    font-weight: 500;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-green);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.8rem;
    text-shadow: 0 0 10px var(--accent-purple);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--accent-green);
    border: 2px solid var(--accent-green);
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.btn:hover {
    background: var(--accent-green);
    color: var(--primary-dark);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.8);
}

/* --- Header & Navigation --- */
.header {
    background: rgba(10, 12, 30, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 8px var(--accent-blue);
}
.logo img {
    height: 45px; /* Настройте высоту вашего логотипа */
    vertical-align: middle;
}

.nav-menu ul {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

/* --- Hero Section (Главный экран) --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../images/hero-background.jpg') no-repeat center center/cover;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 30, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 20px;
    text-shadow: 0 0 15px var(--accent-blue);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
}

/* --- Card Styles (для услуг, кейсов, блога) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--secondary-dark);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 246, 255, 0.2);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    color: var(--accent-blue);
}

.card p {
    color: var(--text-secondary);
    flex-grow: 1;
    margin-bottom: 20px;
}

/* --- Contact Form --- */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    margin-bottom: 5px;
    color: var(--text-secondary);
}
.form-group input, .form-group textarea {
    padding: 15px;
    background: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

/* --- Footer --- */
.footer {
    background: var(--secondary-dark);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.footer-socials a {
    margin: 0 15px;
    font-size: 1.5rem;
}
.footer p {
    margin-top: 20px;
    color: var(--text-secondary);
}

/* --- Анимация при скролле --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}