/* Глобальные стили */
:root {
    --primary: #0A2463;
    --accent: #3E92CC;
    --light: #F5F5F5;
    --white: #FFFFFF;
    --dark: #1A1A1A;
    --freelance: #1BC041;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-freelance {
    background: var(--freelance);
    margin-left: 10px;
}

.btn-freelance:hover {
    background: #E05A2D;
}
/* Анимация для заголовков */
.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: -10px;
    left: 25%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s ease;
}

.section-title:hover h2::after {
    transform: scaleX(1);
}
/* Анимация для кнопок */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}
/* Баннер фриланса */
.freelance-banner {
    background: linear-gradient(135deg, var(--freelance) 0%, #2de0d7 100%);
    background-size: 200% 200%;
    animation: fadeIn 1s ease-out, gradientBG 8s ease infinite;
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.freelance-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.freelance-banner p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.freelance-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.freelance-link {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.3);
}

.freelance-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Шапка */
header {
    background: linear-gradient(135deg, var(--primary) 0%, #1E3B8B 100%);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Стили для галереи в шапке */
.hero-gallery {
    position: absolute;
    right: 1%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    height: 70%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    z-index: 2;
    opacity: 0.95;
}

.gallery-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-image.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10,36,99,0.8), transparent);
    color: white;
    padding: 20px;
    z-index: 2;
    font-size: 1rem;
    font-weight: 500;
}

.gallery-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    z-index: 3;
    width: 0%;
    transition: width 0.1s linear;
}

.gallery-logo {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 4;
    background: rgba(10,36,99,0.7);
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
}

.gallery-logo::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 8px;
}

@media (max-width: 992px) {
    .hero-gallery {
        display: none;
    }
}

/* О команде */
.team-section {
    background-color: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.team-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.team-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-info {
    padding: 20px;
}

.team-info h3 {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1.2rem;
}

.team-info p {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Технологии */
.tech-section {
    background-color: var(--white);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    text-align: center;
}

.tech-item {
    padding: 20px 15px;
    background: var(--light);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.tech-item:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

.tech-item i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.tech-item h3 {
    font-size: 1rem;
}

/* Портфолио */
.portfolio-section {
    background-color: var(--light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch; /* Добавлено для выравнивания */
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 36, 99, 0.8);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 15px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    font-size: 0.9rem;
}
/* Стили для фильтра портфолио */
.portfolio-filter {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 30px;
}

/* Стили для кнопок фильтра */
.filter-btn {
background: var(--light);
color: var(--dark);
border: 1px solid var(--accent);
transition: all 0.3s ease;
}

.filter-btn:hover {
background: rgba(62, 146, 204, 0.1);
}

.filter-btn.active {
background: var(--accent);
color: var(--white);
border-color: var(--accent);
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
.portfolio-filter {
gap: 8px;
}

.filter-btn {
padding: 8px 12px;
font-size: 0.9rem;
}
}

/* Портфолио */
.portfolio-section {
background-color: var(--light);
}
/* Контакты */
.contact-section {
    background-color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-info {
    background: var(--light);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}
/* Анимация для социальных иконок */
.social-links a {
    transition: transform 1s ease, opacity 1s ease;
}

.social-links a:hover {
    transform: translateY(-8px);
    transition: transform 0.3s ease;
}
/* Футер */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.terminal {
    background: var(--dark);
    color: #00FF41;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    max-width: 100%;
    margin: 0 auto 20px;
    text-align: left;
    font-size: 0.9rem;
    overflow-x: auto;
}

footer p {
    font-size: 0.9rem;
}

/* Адаптив */
@media (min-width: 992px) {
    .hero-content {
        max-width: 50%;
    }
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    section {
        padding: 80px 0;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .contact-info {
        padding: 60px;
    }
    
    .portfolio-item {
        height: 250px;
    }
}

@media (min-width: 992px) {
    .team-grid {
        gap: 30px;
    }
    
    .tech-grid {
        gap: 20px;
    }
    
    .portfolio-grid {
        gap: 30px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-freelance {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .contact-info {
        padding: 30px 20px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Анимация появления элементов */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Добавьте в конец CSS */
.portfolio-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    height: 100%;
}

.portfolio-link:hover {
    transform: translateY(-5px);
}