/* Анимации */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация для гамбургер меню */
@keyframes hamburgerToX1 {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(8px) rotate(0deg); }
    100% { transform: translateY(8px) rotate(45deg); }
}

@keyframes hamburgerToX2 {
    0% { opacity: 1; transform: scaleX(1); }
    50% { opacity: 0; transform: scaleX(0); }
    100% { opacity: 0; transform: scaleX(0); }
}

@keyframes hamburgerToX3 {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0deg); }
    100% { transform: translateY(-8px) rotate(-45deg); }
}

@keyframes XToHamburger1 {
    0% { transform: translateY(8px) rotate(45deg); }
    50% { transform: translateY(8px) rotate(0deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes XToHamburger2 {
    0% { opacity: 0; transform: scaleX(0); }
    50% { opacity: 0; transform: scaleX(0); }
    100% { opacity: 1; transform: scaleX(1); }
}

@keyframes XToHamburger3 {
    0% { transform: translateY(-8px) rotate(-45deg); }
    50% { transform: translateY(-8px) rotate(0deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Анимация пульсации для кнопок */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Анимация появления видео-фона */
@keyframes videoFadeIn {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Дополнительные стили */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Стили для форм */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Стили для кнопок */
.btn-hover-effect {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.btn-hover-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Стили для карточек */
.card-hover {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}



/* Улучшенные стили для карточек услуг */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

/* Dropdown menu styles */
.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:visible {
    visibility: visible;
}

/* Стили для мобильного меню */
.mobile-menu-overlay {
    backdrop-filter: blur(8px);
}

/* Стили для рейтинга */
.rating-star {
    transition: transform 0.2s ease-out;
}

.rating-star:hover {
    transform: scale(1.2);
}

/* Новые стили для кнопок виджетов - мобильная версия */
.widget-buttons-mobile {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    pointer-events: none;
}

.widget-buttons-desktop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.widget-button {
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.widget-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.widget-button:hover::before {
    width: 100%;
    height: 100%;
}

.widget-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.widget-button:active {
    transform: scale(0.95);
}

.whatsapp-button {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.whatsapp-button:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.call-button {
    background: linear-gradient(135deg, #3B82F6, #1E40AF);
}

.call-button:hover {
    background: linear-gradient(135deg, #1E40AF, #3B82F6);
}

/* Стили для сообщений */
.message {
    animation: fadeIn 0.3s ease-out;
}

/* Стили для загрузки */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #10B981;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Тень для текста на видео */
.hero-text-shadow {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Стили для главного логотипа DYNAMIX */
.hero-logo-main {
    font-family: 'Impact', 'Arial Black', 'Helvetica', sans-serif;
    background: linear-gradient(45deg, #FFD700, #FF8C00, #FF4500, #DC143C);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    letter-spacing: 0.1em;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
}

.hero-logo-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #FFD700, #FF8C00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.7;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-subtitle {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: 300;
    letter-spacing: 0.15em;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.hero-subtitle:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Стили для кнопки в герой-секции */
.hero-button {
    display: inline-block !important;
    width: auto !important;
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    color: white;
}

.hero-button:hover {
    background: linear-gradient(135deg, #059669, #10B981);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.6);
    transform: translateY(-3px) scale(1.02);
    color: white;
}

/* Стили для кнопок навигации */
.nav-action-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-action-button:hover::before {
    left: 100%;
}

.nav-action-button:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px) scale(1.05);
    color: white;
}

.nav-action-button i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.nav-action-button:hover i {
    transform: translateX(4px);
}

/* Видео стили с анимацией */
video {
    object-fit: cover;
    animation: videoFadeIn 1s ease-out;
}

/* Глобальный фон видео для всех страниц */
.global-video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

.global-video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) brightness(0.3);
}

/* Стили для логотипа */
.logo-img {
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.logo-img:hover {
    transform: scale(1.05) rotate(-2deg);
}

/* Мобильное текстовое лого */
.mobile-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10B981, #34D399, #6EE7B7);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 3s ease infinite;
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
    letter-spacing: 0.05em;
    font-family: 'Arial', 'Helvetica', sans-serif;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-logo-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #10B981, #34D399);
    border-radius: 8px;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    filter: blur(8px);
}

.mobile-logo-text:hover {
    transform: scale(1.05);
}

.mobile-logo-text:hover::before {
    opacity: 0.15;
    transform: scale(1.2);
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Стили для ссылок навигации */
.nav-link {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #10B981, #34D399);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    transform: translateY(-2px);
    color: #10B981;
}

/* Стили для гамбургер кнопки */
.hamburger-button {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.hamburger-button:hover {
    background-color: rgba(16, 185, 129, 0.1);
}

.hamburger-line {
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    left: 0;
}

.hamburger-line:nth-child(1) {
    top: 6px;
}

.hamburger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line:nth-child(3) {
    bottom: 6px;
}

.hamburger-button.active .hamburger-line:nth-child(1) {
    animation: hamburgerToX1 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.hamburger-button.active .hamburger-line:nth-child(2) {
    animation: hamburgerToX2 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.hamburger-button.active .hamburger-line:nth-child(3) {
    animation: hamburgerToX3 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.hamburger-button:not(.active) .hamburger-line:nth-child(1) {
    animation: XToHamburger1 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.hamburger-button:not(.active) .hamburger-line:nth-child(2) {
    animation: XToHamburger2 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.hamburger-button:not(.active) .hamburger-line:nth-child(3) {
    animation: XToHamburger3 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Work Photos Section Styles */
.container.mx-auto.px-4.mb-12.animate-on-scroll {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.work-photo-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.work-photo-card:nth-child(2) {
    grid-column: span 2;
    grid-row: span 1;
}

.work-photo-card:nth-child(3) {
    grid-column: span 2;
    grid-row: span 1;
}

.work-photo-card:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
}

.work-photo-card:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
}

.work-photo-card:nth-child(6) {
    grid-column: span 2;
    grid-row: span 1;
}

.work-photo-card:hover img {
    transform: scale(1.05);
}

.work-photo-card:hover .absolute {
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 1;
}

/* Мобильные настройки */
@media (max-width: 767px) {
    /* Скрываем десктопные виджеты и показываем мобильные */
    .widget-buttons-desktop {
        display: none;
    }

    .widget-buttons-mobile {
        display: flex;
    }

    .work-photo-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0 1rem;
        border-radius: 0;
        box-shadow: none;
        background-color: transparent;
        grid-template-columns: unset;
        grid-auto-rows: unset;
        min-height: unset;
    }

    .work-photo-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
        min-height: 200px;
        max-width: 100%;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        background-color: #ffffff;
        grid-column: unset !important;
        grid-row: unset !important;
    }

    .work-photo-grid::-webkit-scrollbar {
        height: 8px;
    }

    .work-photo-grid::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #10B981, #34D399);
        border-radius: 4px;
    }

    .work-photo-grid::-webkit-scrollbar-track {
        background-color: rgba(0, 0, 0, 0.05);
    }

    header {
        position: relative;
        z-index: 50;
    }

    .mobile-menu {
        display: none;
        transform: translateY(-100%);
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        opacity: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 40;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        background: rgba(31, 41, 55, 0.95);
    }

    .mobile-menu.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link-mobile {
        padding: 1rem 1.5rem;
        display: block;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .nav-link-mobile::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .nav-link-mobile:hover::before {
        left: 100%;
    }

    .nav-link-mobile:hover {
        background-color: rgba(16, 185, 129, 0.1);
        color: #10B981;
        transform: translateX(10px);
    }

    .hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .hero-section video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        transform: none;
    }

    .hero-section video.block.md\:hidden {
        width: 100vw;
        height: 60vh;
        min-height: 400px;
        max-height: 60vh;
        object-fit: cover;
        object-position: center center;
    }
}

/* Скрытие мобильных виджетов на десктопе */
@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }

    .widget-buttons-mobile {
        display: none;
    }

    .widget-buttons-desktop {
        display: flex;
    }
}

/* Базовые стили для hero-section */
.hero-section {
    height: 75vh;
    position: relative;
    overflow: hidden;
}

.hero-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .hero-section {
        height: 50vh;
        min-height: 350px;
    }

    .hero-section video {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .widget-button {
        width: 55px;
        height: 55px;
    }
}

.hero-section video[poster] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.video-container {
    max-width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
}

.video-container video {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Обновленная цветовая схема */
:root {
    --primary-color: #10B981;
    --primary-dark: #059669;
    --secondary-color: #34D399;
    --accent-color: #F59E0B;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --background-light: #F9FAFB;
}

/* Новые цвета для элементов */
.bg-primary {
    background-color: var(--primary-color);
}

.bg-primary-dark {
    background-color: var(--primary-dark);
}

.text-primary {
    color: var(--primary-color);
}

.border-primary {
    border-color: var(--primary-color);
}

/* Service Areas Styling */
.service-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-area-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-area-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-area-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #3b82f6, #1d4ed8);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.service-area-item:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.service-area-item:hover:before {
    transform: scaleY(1);
}

.service-area-item.main-city {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
    font-weight: 600;
}

.service-area-item.main-city:hover {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.service-area-item.main-city:before {
    background: linear-gradient(to bottom, #fbbf24, #f59e0b);
    width: 4px;
}

.service-area-item i {
    color: #3b82f6;
    font-size: 0.875rem;
    margin-right: 0.75rem;
    min-width: 16px;
    transition: all 0.3s ease;
}

.service-area-item.main-city i {
    color: #f59e0b;
    font-size: 1rem;
}

.service-area-item:hover i {
    transform: scale(1.1);
}

.service-area-item span {
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.25;
    transition: color 0.3s ease;
}

.service-area-item:hover span {
    color: #1f2937;
}

.service-area-item.main-city span {
    color: #1e40af;
}

/* Responsive Design for Service Areas */
@media (max-width: 768px) {
    .service-areas-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .service-area-item {
        padding: 0.5rem 0.75rem;
    }
    
    .service-area-item i {
        font-size: 0.75rem;
        margin-right: 0.5rem;
        min-width: 14px;
    }
    
    .service-area-item.main-city i {
        font-size: 0.875rem;
    }
    
    .service-area-item span {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .service-areas-grid {
        gap: 0.5rem;
    }
    
    .service-area-item {
        padding: 0.5rem;
    }

    .service-area-item:hover {
        transform: translateX(3px);
    }

    .service-area-item.main-city:hover {
        transform: translateX(5px);
    }

    /* Адаптивное мобильное лого для очень маленьких экранов */
    .mobile-logo-text {
        font-size: 1.5rem;
        letter-spacing: 0.02em;
    }
}

/* Instagram-style slider */
@media (max-width: 640px) {
    .instagram-slider {
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .instagram-slider::-webkit-scrollbar {
        display: none;
    }
    
    .slider-dot {
        cursor: pointer;
    }
    
    .slider-dot.active {
        background-color: #3b82f6;
        transform: scale(1.2);
    }
    
    .clickable-photo {
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .clickable-photo:hover {
        transform: scale(1.02);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    }
    
    .clickable-photo:hover .ripple-effect {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.3);
    }
    
    .clickable-photo:hover img {
        transform: scale(1.05);
    }
    
    .clickable-photo:active {
        transform: scale(0.98);
    }
    
    .ripple-effect {
        backdrop-filter: blur(2px);
    }
    
    .ripple-effect div {
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0% {
            transform: scale(1);
            opacity: 1;
        }
        50% {
            transform: scale(1.1);
            opacity: 0.7;
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }
    
    /* Click ripple effect */
    .click-ripple {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.6);
        pointer-events: none;
        transform: scale(0);
        animation: ripple-animation 0.6s linear;
        z-index: 10;
    }
    
    @keyframes ripple-animation {
        0% {
            transform: scale(0);
            opacity: 0.6;
        }
        100% {
            transform: scale(4);
            opacity: 0;
        }
    }
}

.desktop-only {
    display: none;
}

@media (min-width: 769px) {
    .desktop-only {
        display: grid;
    }
}

/* Utility class to hide scrollbar */
.scrollbar-hide {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Story height for 9:16 aspect ratio */
.story-height {
    height: 32rem; /* 512px for w-72 (288px) to maintain 9:16 ratio */
}

@media (max-width: 380px) {
    .story-height {
        height: 28rem; /* 448px for smaller screens */
    }
    
    .instagram-slider .flex-shrink-0 {
        width: 16rem; /* w-64 = 256px for smaller screens */
    }
}