/* * Axo-Lab v2.4 - Final Theme */

:root {
    --bg-main: #050505;
    --bg-secondary: #0F0F0F;
    --bg-card: #141414;
    
    --text-primary: #ffffff;
    --text-secondary: #888888;
    
    --accent-color: #ffffff;
    --accent-gradient: linear-gradient(45deg, #ffffff, #888888);
    
    --glow-center: radial-gradient(circle at 50% 50%, rgba(30, 30, 40, 0.4) 0%, rgba(5, 5, 5, 1) 70%);
    --section-spacing: 120px;
    
    --font-family: 'Inter', -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-family);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 60px;
    text-align: center;
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    cursor: default; /* Курсор не меняется */
    user-select: none; /* Текст не выделяется */
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
}

nav .nav-list {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

nav a:hover {
    color: var(--text-primary);
}

/* Auth Buttons & User Menu */
.login-btn {
    padding: 8px 20px;
    background: var(--text-primary);
    color: var(--bg-main);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, opacity 0.2s;
}

.login-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.nav-user-menu {
    position: relative;
    cursor: pointer;
}

.nav-user-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    object-fit: cover;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.nav-user-menu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-content {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.dropdown-menu-content a {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 0.9rem;
}

.dropdown-menu-content a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--glow-center);
    padding-top: 80px;
}

.hero p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.2rem;
}

/* --- Stats & Features --- */
.about-section {
    padding: var(--section-spacing) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.1);
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* --- Projects --- */
.projects-section {
    padding: var(--section-spacing) 0;
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--bg-main);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.1);
}

.project-image {
    height: 220px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image svg {
    color: #fff;
    opacity: 0.9;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image svg {
    transform: scale(1.1);
}

.project-info {
    padding: 30px;
}

.project-info h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    font-size: 0.75rem;
    padding: 6px 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    color: var(--text-primary);
    font-weight: 500;
}

/* --- Services --- */
.services-section {
    padding: var(--section-spacing) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-secondary);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    transition: border-color 0.3s;
}

.service-card:hover {
    border-color: rgba(255,255,255,0.15);
}

.service-card h4 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.service-link {
    margin-top: 30px;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
}

/* --- Contact & Footer --- */
.contact-section {
    padding: 150px 0;
    text-align: center;
    background: var(--glow-center);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-btn {
    padding: 15px 40px;
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 600;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--text-primary);
    color: var(--bg-main);
    transform: translateY(-3px);
}

footer {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: var(--bg-main);
}
.footer-links a {
    color: var(--text-secondary);
    margin: 0 5px;
}
.footer-links a:hover {
    text-decoration: underline;
}

/* --- Animations --- */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.stagger-delay > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-delay > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-delay > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-delay > *:nth-child(4) { transition-delay: 0.4s; }

/* Toast Notification (Стили для всплывашки) */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 100px);
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    z-index: 10000;
    font-size: 0.95rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    width: 90%;
    max-width: 450px;
    line-height: 1.5;
}

.toast-notification.show {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

/* Mobile */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    nav {
        display: none;
    }
    .stats-grid, .features-grid, .projects-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; margin-bottom: 40px; }
    .social-links { flex-direction: column; gap: 15px; }
}