:root {
    /* Colors */
    --primary-color: #0056b3; /* Deep Blue */
    --primary-dark: #003d80;
    --accent-color: #2563eb; /* Electric Blue */
    --secondary-color: #0f172a; /* Dark Navy/Black */
    --text-color: #334155; /* Slate 700 */
    --text-light: #64748b; /* Slate 500 */
    --bg-light: #f8fafc; /* Slate 50 */
    --white: #ffffff;
    --border-color: #e2e8f0;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0056b3 0%, #2563eb 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --max-width: 1280px;
    --header-height: 80px;
    --radius: 12px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.12);
    --shadow-hover: 0 20px 32px -8px rgba(15, 23, 42, 0.16);
    
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

.section {
    padding: 100px 0;
    overflow-x: hidden;
    width: 100%;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 3rem;
}

.section__tag {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 1rem;
    background: rgba(37, 99, 235, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 10px;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.35);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px 0 rgba(37, 99, 235, 0.45);
}

.btn--primary:active, .btn--outline:active {
    transform: translateY(0) scale(0.98);
}

.btn--outline {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--white);
    backdrop-filter: blur(4px);
}

.btn--outline:hover {
    background: var(--white);
    color: var(--secondary-color);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.btn--full {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.header--scrolled,
.header--menu-open {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.header--scrolled .logo {
    color: var(--secondary-color);
}

.logo__text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo__title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.logo__badge {
    background: var(--accent-color);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo__subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.header--scrolled .logo__subtitle {
    color: var(--text-light);
}

.logo__highlight {
    color: var(--accent-color);
}

.nav__list {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav__link {
    font-weight: 500;
    color: var(--white);
    font-size: 0.95rem;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.header--scrolled .nav__link {
    color: var(--secondary-color);
}

.nav__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav__link:hover {
    color: var(--accent-color);
}

.nav__link:hover::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.header__phone {
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.header--scrolled .header__phone,
.header--menu-open .header__phone {
    color: var(--secondary-color);
}

.header__phone i {
    color: var(--accent-color);
}

.btn--header {
    padding: 10px 22px;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05); /* Slight zoom for parallax feel */
    animation: zoomOut 20s infinite alternate;
}

@keyframes zoomOut {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: -1;
}

.hero__content {
    max-width: 800px;
    margin-left: 0; /* Left aligned content */
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero__subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero__desc {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero__btns {
    display: flex;
    gap: 20px;
    margin-bottom: 4rem;
}

.hero__features {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    font-weight: 500;
}

.hero-feature i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* About Section */
.about {
    background-color: var(--white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about__img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.about__stats {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.about__list {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.about__list i {
    color: var(--accent-color);
}

/* Advantages */
.advantages {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.adv-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.adv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.adv-card__icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.adv-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.adv-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Products */
.products {
    background-color: var(--white);
}

.section__header {
    margin-bottom: 4rem;
}

/* Products Slider */
.products-slider {
    position: relative;
    padding: 0 70px; /* Место для кнопок навигации */
}

.products-slider__viewport {
    overflow: hidden;
    position: relative;
}

.products-slider__track {
    display: flex;
    gap: 30px;
    will-change: transform;
}

/* Карточка продукта в слайдере */
.products-slider .product-card {
    flex: 0 0 calc(50% - 15px); /* 2 карточки на экране */
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    cursor: default;
}

.products-slider .product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.products-slider .product-card__img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.products-slider .product-card__content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.products-slider .product-card__content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.products-slider .product-card__content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Список спецификаций */
.products-slider .product-card__specs {
    list-style: none;
    margin: 0;
    padding: 0;
}

.products-slider .product-card__specs li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.5;
}

.products-slider .product-card__specs li:last-child {
    margin-bottom: 0;
}

.products-slider .product-card__specs i {
    color: var(--accent-color);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Кнопки навигации слайдера */
.products-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.products-slider__btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.products-slider__btn--prev {
    left: 0;
}

.products-slider__btn--next {
    right: 0;
}

/* Точки пагинации слайдера */
.products-slider__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
}

.products-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.products-slider__dot:hover {
    background: var(--accent-color);
}

.products-slider__dot.active {
    width: 28px;
    border-radius: 12px;
    background: var(--gradient-primary);
}

/* Services */
.services {
    background: var(--secondary-color);
    color: var(--white);
}

.section__header--white .section__title,
.section__header--white .section__subtitle {
    color: var(--white);
}

.section__header--white .section__subtitle {
    opacity: 0.8;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--radius);
    transition: var(--transition);
    text-align: left;
}

.service-box:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-box i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-box h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-box p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.service-box .service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-box .service-list li {
    position: relative;
    padding-left: 18px;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-box .service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
}

/* Directions */
.directions {
    background-color: var(--bg-light);
}

.directions__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    margin-top: 40px;
    justify-content: center;
}

.direction-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: default;
}

.direction-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.direction-card__content h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.direction-card__content .direction-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.direction-card__content .direction-list li {
    font-size: 0.95rem;
    color: var(--text-light);
    position: relative;
    padding-left: 18px;
    line-height: 1.5;
}

.direction-card__content .direction-list li::before {
    content: '-';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
}

.direction-card__icon {
    font-size: 2rem;
    color: #cbd5e1; /* Light gray icon initially */
    transition: var(--transition);
}

.direction-card:hover .direction-card__icon {
    color: var(--accent-color);
}

/* Projects */
.projects {
    background-color: var(--white);
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.project-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
}

.project-item img {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-item__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: var(--white);
    transform: translateY(0);
    opacity: 0.9;
}

.project-item__overlay h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.project-item__overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Quality */
.quality {
    padding: 0; /* No standard padding */
}

.quality__container {
    background: var(--gradient-primary);
    border-radius: var(--radius);
    padding: 60px;
    color: var(--white);
    text-align: center;
    margin-bottom: 100px; /* Space after */
}

.quality__content .section__title {
    color: var(--white);
}

.quality__badges {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.q-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.q-badge i {
    font-size: 3rem;
    opacity: 0.9;
}

.q-badge span {
    font-weight: 600;
    letter-spacing: 1px;
}

/* Contact */
.contact {
    background-color: var(--bg-light);
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact__desc {
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.contact-row h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-row p, .contact-row a {
    color: var(--text-light);
}

.contact__form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form__heading {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.form__group {
    margin-bottom: 20px;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Скрытое поле-приманка для ботов */
.form__group--hp {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.form__note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 15px;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: #94a3b8;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo--footer {
    color: var(--white);
    margin-bottom: 10px;
}

.footer__text {
    font-size: 0.9rem;
}

.footer__copyright {
    font-size: 0.9rem;
}

/* Responsive */
/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--accent-color);
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

.checkbox-group a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Footer Nav */
.footer__nav {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer__nav a {
    color: #94a3b8;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer__nav a:hover {
    color: var(--white);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
}

.modal__container {
    background: var(--white);
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    position: relative;
    z-index: 2001;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--secondary-color);
}

.modal__close:hover {
    background: var(--white);
    transform: rotate(90deg);
}

.modal__gallery {
    position: relative;
    background: #000;
    overflow: hidden;
}

.gallery__track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease-out;
}

.gallery__slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery__track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Видео в галерее */
.gallery__video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.gallery__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery__btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.gallery__btn--prev { left: 20px; }
.gallery__btn--next { right: 20px; }

.gallery__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.gallery__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.gallery__dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.modal__content {
    padding: 40px;
    overflow-y: auto;
}

.modal__title {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.modal__meta {
    display: flex;
    gap: 20px;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.modal__meta i {
    color: var(--accent-color);
    margin-right: 5px;
}

.modal__description {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.modal__specs {
    margin-bottom: 2rem;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
}

.modal__specs h4 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.modal__specs ul li {
    font-size: 0.9rem;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.modal__specs ul li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.btn--modal-action {
    width: 100%;
}

@media (max-width: 992px) {
    .modal__container {
        grid-template-columns: 1fr;
        max-height: 85vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .modal__gallery {
        height: 300px;
        flex-shrink: 0;
    }
    
    .footer__container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer__nav {
        justify-content: center;
    }

    .header__phone, .btn--header {
        display: none;
    }
}

/* ==========================================
   Cookie Consent Banner
   ========================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    color: var(--white);
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.cookie-banner__icon {
    flex-shrink: 0;
    font-size: 3rem;
    color: var(--accent-color);
}

.cookie-banner__text {
    flex: 1;
}

.cookie-banner__text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.cookie-banner__text p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.cookie-banner__text a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-banner__text a:hover {
    color: var(--white);
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.cookie-banner__btn--accept {
    background: var(--accent-color);
    color: var(--white);
}

.cookie-banner__btn--accept:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.cookie-banner__btn--decline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.cookie-banner__btn--decline:hover {
    background: var(--text-light);
    color: var(--secondary-color);
}

@media (min-width: 769px) and (max-width: 992px) {
    .cookie-banner__content {
        padding: 15px;
    }
    
    .cookie-banner__text {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .cookie-banner__actions {
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }
    
    .cookie-banner__btn {
        flex: 1;
        width: 100%;
    }
}

/* ==========================================
   Projects Hint
   ========================================== */

.projects__hint {
    text-align: start;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: start;
    justify-content: start;
    gap: 10px;
    animation: fadeIn 0.5s ease-out;
}

.projects__hint i {
    font-size: 1.2rem;
    color: var(--accent-color);
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .fade-left {
        transform: translateY(20px);
    }

    .fade-right {
        transform: translateY(20px);
    }

    .projects__hint {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .products__hint {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 5px;
    }
    
    /* Products Slider Mobile */
    .products-slider {
        padding: 0;
    }
    
    .products-slider::before,
    .products-slider::after {
        display: none;
    }
    
    .products-slider .product-card {
        flex: 0 0 100%; /* 1 карточка на мобильных */
    }
    
    .products-slider__btn {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(4px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(0, 86, 179, 0.25);
    }
    
    .products-slider__btn--prev {
        left: 6px;
    }
    
    .products-slider__btn--next {
        right: 6px;
    }
    
    .products-slider .product-card__img {
        height: 185px;
    }
    
    .products-slider .product-card__content {
        padding: 18px 16px;
    }
    
    .products-slider .product-card__content h3 {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }

    .products-slider .product-card__content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.45;
    }

    .products-slider .product-card__specs li {
        font-size: 0.85rem;
        gap: 8px;
        margin-bottom: 6px;
    }

    .products-slider__dots {
        margin-top: 16px;
    }
}

/* ==========================================
   Tablet Navigation (768px - 992px)
   ========================================== */

@media (min-width: 769px) and (max-width: 992px) {
    .header__container {
        padding: 0 20px;
    }
    
    .nav__list {
        gap: 1.5rem;
    }
    
    .hero__title {
        font-size: 2.2rem;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    .about__grid, .contact__wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .products__grid, .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Products Slider Tablet */
    .products-slider {
        padding: 0 60px;
    }
    
    .products-slider::before,
    .products-slider::after {
        width: 60px;
    }
    
    .products-slider .product-card {
        flex: 0 0 calc(50% - 15px); /* 2 карточки на планшетах */
    }
    
    .products-slider .product-card__img {
        height: 260px;
    }
    
    .directions__tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   Mobile Navigation
   ========================================== */

/* Burger Menu Base Styles */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.burger-menu span {
    width: 30px;
    height: 2px;
    background: var(--white);
    transition: background 0.3s ease;
}

.header--scrolled .burger-menu span,
.header--menu-open .burger-menu span {
    background: var(--secondary-color);
}

@media (max-width: 992px) {
    .burger-menu {
        display: flex;
    }
    
    .nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        padding: 40px;
        flex-direction: column;
        align-items: center;
        overflow-y: auto;
        border-top: 1px solid var(--border-color);
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav__list {
        flex-direction: column;
        align-items: center;
        font-size: 1.2rem;
        gap: 2rem;
    }
    
    .nav__link {
        color: var(--secondary-color);
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .about__grid, .contact__wrapper, .products__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about__image-wrapper {
        order: -1;
    }
    
    .directions__tabs {
        grid-template-columns: 1fr;
    }
    
    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .projects__grid {
        grid-template-columns: 1fr;
    }
    
    /* Hero Section Mobile Styles */
    .hero {
        min-height: 600px;
        padding-top: 100px;
    }
    
    .hero__content {
        padding: 0 20px;
        max-width: 100%;
    }
    
    .hero__title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero__subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-bottom: 0.75rem;
    }
    
    .hero__desc {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }
    
    .hero__features {
        gap: 20px;
        padding-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-feature {
        font-size: 0.9rem;
        gap: 8px;
    }
    
    .hero-feature i {
        font-size: 1rem;
    }
    
    /* About Section Mobile Styles */
    .about__list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .about__list li {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    /* Hero Section Small Mobile */
    .hero {
        min-height: 500px;
        padding-top: 90px;
    }
    
    .hero__title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero__subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }
    
    .hero__desc {
        font-size: 0.9rem;
    }
    
    .hero__btns {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .hero__btns .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero__features {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        padding-top: 20px;
    }
    
    .hero-feature {
        font-size: 0.85rem;
        min-width: calc(50% - 10px);
        justify-content: center;
    }
    
    /* About Section Small Mobile */
    .about__grid {
        gap: 30px;
    }
    
    .about__stats {
        position: static;
        margin-top: 20px;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .about__list {
        gap: 10px;
    }
    
    .about__list li {
        font-size: 0.85rem;
        gap: 8px;
    }
    
    /* General Section Styles */
    .section__title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .section__subtitle {
        font-size: 0.95rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    /* Contact Section */
    .contact__wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact__form-card {
        padding: 25px;
    }
    
    /* Advantages */
    .advantages__grid {
        grid-template-columns: 1fr;
    }
    
    /* Products */
    .product-card__img {
        height: 200px;
    }
    
    .product-card__content {
        padding: 20px;
    }
    
    /* Services */
    .service-box {
        padding: 20px;
    }
    
    /* Modal */
    .modal__container {
        max-height: 90vh;
        margin: 10px;
    }
    
    .modal__content {
        padding: 25px;
    }
    
    .modal__title {
        font-size: 1.5rem;
    }
    
    /* Cookie Banner */
    .cookie-banner__content {
        padding: 15px;
    }
    
    .cookie-banner__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-banner__btn {
        width: 100%;
    }
}

/* ============================================
   ANIMATIONS - Premium Effects
   ============================================ */

/* Keyframe Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(37, 99, 235, 0.3); }
    50% { box-shadow: 0 0 20px rgba(37, 99, 235, 0.6); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes bounce-in {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slide-up {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slide-left {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-right {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes zoom-in {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes rotate-in {
    from { transform: rotate(-180deg) scale(0); opacity: 0; }
    to { transform: rotate(0) scale(1); opacity: 1; }
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

/* ============================================
   SCROLL-TRIGGERED ANIMATIONS
   ============================================ */

/* Base Fade Animation */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* Fade Up */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Left */
.fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade Right */
.fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade Zoom */
.fade-zoom {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-zoom.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Delays */
.stagger:nth-child(1) { transition-delay: 0.1s; }
.stagger:nth-child(2) { transition-delay: 0.2s; }
.stagger:nth-child(3) { transition-delay: 0.3s; }
.stagger:nth-child(4) { transition-delay: 0.4s; }
.stagger:nth-child(5) { transition-delay: 0.5s; }
.stagger:nth-child(6) { transition-delay: 0.6s; }

/* ============================================
   BUTTON ANIMATIONS
   ============================================ */

/* Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Glow Effect */
.btn--primary {
    position: relative;
}

.btn--primary::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50px;
    background: linear-gradient(45deg, #0056b3, #2563eb, #0056b3);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(10px);
}

.btn--primary:hover::after {
    opacity: 0.6;
    animation: pulse-glow 1.5s infinite;
}

/* Outline Button Glow */
.btn--outline:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Magnetic Effect (applied via JS) */
.btn.magnetic {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(var(--magnetic-x, 0px), var(--magnetic-y, 0px));
}

/* ============================================
   CARD HOVER ANIMATIONS
   ============================================ */

/* Adv Card */
.adv-card {
    position: relative;
    overflow: hidden;
}

.adv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    transition: left 0.5s ease;
}

.adv-card:hover::before {
    left: 100%;
}

.adv-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.adv-card:hover .adv-card__icon {
    transform: scale(1.2) rotate(10deg);
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.adv-card__icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Product Card */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 86, 179, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.product-card:hover .product-card__img {
    transform: scale(1.1);
}

.product-card__img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card__content {
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card__content {
    transform: translateY(-5px);
}

.product-card:hover h3 {
    color: var(--accent-color);
}

.product-card h3 {
    transition: color 0.3s ease;
}

/* Service Box */
.service-box {
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent-color);
    transition: height 0.4s ease;
}

.service-box:hover::before {
    height: 100%;
}

.service-box:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.service-box:hover i {
    transform: rotate(360deg) scale(1.2);
    color: var(--white);
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.8);
}

.service-box i {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-box:hover h3 {
    color: var(--white);
}

.service-box h3 {
    transition: color 0.3s ease;
}

/* Direction Card */
.direction-card {
    position: relative;
    overflow: hidden;
}

.direction-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease;
}

.direction-card:hover::after {
    opacity: 1;
    transform: scale(2);
}

.direction-card:hover {
    transform: translateY(-5px) translateX(5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.direction-card:hover .direction-card__icon {
    transform: scale(1.3) rotate(-10deg);
    color: var(--accent-color);
}

.direction-card__icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   ICON ANIMATIONS
   ============================================ */

/* Icon Scale */
.icon-scale:hover i {
    transform: scale(1.2);
}

/* Icon Rotate */
.icon-rotate:hover i {
    transform: rotate(180deg);
}

/* Icon Bounce */
.icon-bounce:hover i {
    animation: bounce-in 0.6s ease;
}

/* Icon Glow */
.icon-glow:hover i {
    filter: drop-shadow(0 0 10px currentColor);
}

/* Icon Float */
.icon-float i {
    animation: float 3s ease-in-out infinite;
}

/* Hero Feature Icons */
.hero-feature:hover i {
    transform: scale(1.3) rotate(15deg);
    color: var(--white);
    text-shadow: 0 0 15px rgba(37, 99, 235, 0.8);
}

.hero-feature i {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   IMAGE ANIMATIONS
   ============================================ */

/* Image Zoom */
.img-zoom:hover img {
    transform: scale(1.1);
}

.img-zoom img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image Overlay */
.img-overlay {
    position: relative;
    overflow: hidden;
}

.img-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.img-overlay:hover::after {
    opacity: 1;
}

/* Image Parallax */
.img-parallax {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.img-parallax img {
    transition: transform 0.1s ease-out;
}

/* About Image */
.about__image-wrapper:hover .about__img {
    transform: scale(1.05);
}

.about__img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about__image-wrapper:hover .about__stats {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.about__stats {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   PROJECT ITEM ANIMATIONS
   ============================================ */

.project-item {
    position: relative;
    overflow: hidden;
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    opacity: 0.7;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.project-item:hover::before {
    opacity: 1;
}

.project-item:hover img {
    transform: scale(1.15);
}

.project-item img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item__overlay {
    position: relative;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item:hover .project-item__overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-item:hover .project-item__overlay h3 {
    transform: translateY(-5px);
}

.project-item__overlay h3 {
    transition: transform 0.4s ease;
}

/* ============================================
   NAV LINK ANIMATIONS
   ============================================ */

.nav__link {
    position: relative;
}

.nav__link::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav__link:hover::before {
    width: 100%;
}

.nav__link:hover {
    color: var(--accent-color);
    letter-spacing: 1px;
}

.nav__link {
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

/* ============================================
   PARALLAX EFFECTS
   ============================================ */

/* Hero Parallax */
.hero {
    perspective: 1000px;
}

.hero__bg {
    transform-style: preserve-3d;
    will-change: transform;
}

.hero__content {
    transform-style: preserve-3d;
    will-change: transform;
}

/* Floating Elements */
.float-element {
    animation: float 6s ease-in-out infinite;
}

.float-element:nth-child(2) {
    animation-delay: -2s;
}

.float-element:nth-child(3) {
    animation-delay: -4s;
}

/* ============================================
   COUNTER ANIMATION
   ============================================ */

.stat-number {
    display: inline-block;
}

/* ============================================
   FORM ANIMATIONS
   ============================================ */

.form__group input,
.form__group textarea {
    position: relative;
}

.form__group input:focus,
.form__group textarea:focus {
    animation: pulse-glow 0.5s ease;
}

/* ============================================
   LINK ARROW ANIMATION
   ============================================ */

.link-arrow {
    position: relative;
}

.link-arrow i {
    transition: transform 0.3s ease;
}

.link-arrow:hover i {
    transform: translateX(5px);
}

/* ============================================
   QUALITY BADGE ANIMATION
   ============================================ */

.q-badge {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.q-badge:hover {
    transform: translateY(-10px) scale(1.1);
}

.q-badge:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--white);
}

.q-badge i {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   ICON BOX ANIMATION
   ============================================ */

.icon-box {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-box:hover {
    transform: translateY(-5px) rotate(5deg);
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* ============================================
   FOOTER LINK ANIMATION
   ============================================ */

.footer__nav a {
    position: relative;
}

.footer__nav a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.3s ease;
}

.footer__nav a:hover::before {
    width: 100%;
}

/* ============================================
   MODAL ANIMATIONS
   ============================================ */

.modal__container {
    animation: zoom-in 0.3s ease;
}

.modal.active .modal__container {
    animation: zoom-in 0.3s ease;
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .fade-up,
    .fade-left,
    .fade-right,
    .fade-zoom,
    .fade-in {
        opacity: 1;
        transform: none;
    }
    
    .hero__bg {
        animation: none;
    }
    
    .float-element {
        animation: none;
    }
}

/* ============================================
   HERO SECTION ENHANCEMENTS
   ============================================ */

.hero__title {
    opacity: 0;
    animation: slide-up 1s ease forwards;
    animation-delay: 0.3s;
}

.hero__subtitle {
    opacity: 0;
    animation: slide-up 1s ease forwards;
    animation-delay: 0.5s;
}

.hero__desc {
    opacity: 0;
    animation: slide-up 1s ease forwards;
    animation-delay: 0.7s;
}

.hero__btns {
    opacity: 0;
    animation: slide-up 1s ease forwards;
    animation-delay: 0.9s;
}

.hero__features {
    opacity: 0;
    animation: slide-up 1s ease forwards;
    animation-delay: 1.1s;
}

/* ============================================
   SECTION TAG ANIMATION
   ============================================ */

.section__tag {
    opacity: 0;
    animation: slide-up 0.6s ease forwards;
}

.section__tag.visible {
    opacity: 1;
}

/* ============================================
   STATS NUMBER ANIMATION
   ============================================ */

.stat-number {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   GRADIENT TEXT ANIMATION
   ============================================ */

.text-gradient {
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

/* ============================================
   CONTACT ROW ANIMATION
   ============================================ */

.contact-row {
    transition: all 0.3s ease;
}

.contact-row:hover {
    transform: translateX(10px);
}

.contact-row:hover .icon-box {
    background: var(--accent-color);
    color: var(--white);
}

/* ============================================
   BURGER MENU ANIMATION
   ============================================ */

.burger-menu span {
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   SCROLL BAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ============================================
   SELECTION STYLING
   ============================================ */

::selection {
    background: var(--accent-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--accent-color);
    color: var(--white);
}

/* ============================================
   DYNAMIC ELEMENTS STYLES
   ============================================ */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 14px rgba(0, 86, 179, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.5);
}

.back-to-top:active {
    transform: translateY(-3px) scale(1.05);
}

.back-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}
