/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --gold: #ffd700;
    --gold-glow: #ffcc00;
    --blue-glow: #00bfff;
    --text-color: #e0e0e0;
    --accent: #ffd700;
}

body {
    background-color: var(--dark-bg);
    color: var(--gold);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    min-width: 320px;
}

body p, body h1, body h2, body h3, body h4, body span, body div:not(.container):not(.header-content):not(.contact-icons):not(.dropdown-menu), body a:not(.highlight-link) {
    color: var(--gold);
}

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Background Particles Canvas */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

/* Three.js Canvas for 3D elements */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.3;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    transition: transform 0.3s ease;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.hidden {
    transform: translateY(-100%);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 0 15px;
}

.logo {
    width: 70px;
    height: 70px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    background: var(--darker-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.dropdown-btn i {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-btn:hover {
    transform: scale(1.1);
}

.dropdown-menu {
    position: fixed;
    background: var(--darker-bg);
    min-width: 200px;
    border-radius: 10px;
    border: 1px solid var(--gold);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1002;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    transition: background 0.3s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #2c2c2c;
}

.dropdown-item a {
    color: var(--gold);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: color 0.3s ease;
}

.dropdown-item a:hover {
    color: var(--blue-glow);
}

.dropdown-item .name {
    font-weight: bold;
}

.dropdown-item .phone {
    color: var(--blue-glow);
    font-size: 14px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('hero-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--gold);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-content {
    max-width: 90%;
    padding: 20px;
}

.hero-content h1 {
    color: var(--gold);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px var(--gold-glow);
    padding: 15px;
    box-shadow: 0 0 20px var(--gold-glow);
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 12px 35px;
    background: var(--darker-bg);
    color: var(--gold);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.5);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 50px;
    color: var(--gold);
    position: relative;
    text-shadow: 0 0 10px var(--gold-glow);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, var(--gold), #ffa500);
    border-radius: 2px;
}

.section-title .letter {
    display: inline-block;
}

/* About Section */
.about {
    padding: 100px 5vw;
    background: var(--darker-bg);
    width: 100%;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gold);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--dark-bg);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.1);
    border: 1px solid var(--gold);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--gold);
    font-size: 0.9rem;
}

/* Services Section */
.services {
    padding: 100px 5vw;
    background: var(--dark-bg);
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--darker-bg);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: fit-content;
    border: 1px solid var(--gold);
    transition: transform 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--gold), #ffa500);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--gold);
}

.service-card p {
    color: var(--gold);
    line-height: 1.6;
    font-size: 1rem;
}

/* Reviews Section */
.reviews {
    padding: 100px 5vw;
    background: var(--darker-bg);
    width: 100%;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.review-card {
    background: var(--dark-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
    position: relative;
    min-height: fit-content;
    border: 1px solid var(--gold);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-10px);
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
}

.review-text {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--gold);
    font-size: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--gold), #ffa500);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    font-weight: bold;
}

.reviewer-details h4 {
    color: var(--gold);
    margin-bottom: 5px;
    font-size: 1rem;
}

.rating i {
    color: var(--gold);
}

/* Gallery Section */
.gallery {
    padding: 100px 5vw;
    background: var(--dark-bg);
    width: 100%;
}

.gallery-container {
    position: relative;
    max-width: 100%;
    margin: 50px auto 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    border: 1px solid var(--gold);
}

.gallery-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.gallery-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.gallery-slide {
    flex: 1 0 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: none;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.gallery-slide:first-child {
    display: flex;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
}

.slide-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--gold);
    padding: 30px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-slide:hover .slide-description {
    transform: translateY(0);
}

.gallery-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-container:hover .gallery-controls {
    opacity: 1;
}

.gallery-controls:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    color: var(--gold);
    padding: 50px 5vw 20px;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--gold);
    font-size: 1.5rem;
}

.footer-section:first-child a {
    color: var(--blue-glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section:first-child a:hover {
    color: var(--gold);
}

.footer-section p,
.footer-section:not(:first-child) a {
    color: var(--gold);
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-section p i {
    margin-right: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    color: var(--gold);
    font-size: 32px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon i {
    display: inline-block;
    line-height: 1;
}

.social-icon .fa-whatsapp { color: #25D366; }
.social-icon .fa-telegram { color: #0088cc; }
.social-icon .fa-instagram { color: #E1306C; }

.footer-section.my-ad {
    background: rgba(255, 215, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
    text-align: center;
    margin: 30px 0;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.footer-section a.highlight-link {
    color: var(--gold);
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.footer-section a.highlight-link:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: var(--gold);
    font-size: 0.9rem;
}

/* Links */
a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    color: var(--blue-glow);
}

/* Glow and Pulse Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0% { text-shadow: 0 0 5px var(--gold-glow), 0 0 10px var(--gold-glow); }
    50% { text-shadow: 0 0 10px var(--gold-glow), 0 0 20px var(--gold-glow); }
    100% { text-shadow: 0 0 5px var(--gold-glow), 0 0 10px var(--gold-glow); }
}

@keyframes blue-glow {
    0% { text-shadow: 0 0 5px var(--blue-glow), 0 0 10px var(--blue-glow); }
    50% { text-shadow: 0 0 10px var(--blue-glow), 0 0 20px var(--blue-glow); }
    100% { text-shadow: 0 0 5px var(--blue-glow), 0 0 10px var(--blue-glow); }
}

@keyframes rainbow-text {
    0% { color: red; }
    14% { color: orange; }
    28% { color: yellow; }
    42% { color: green; }
    57% { color: blue; }
    71% { color: indigo; }
    85% { color: violet; }
    100% { color: red; }
}

@keyframes sparkle {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
    100% { filter: brightness(1); }
}

@keyframes rotate3d {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Apply animations only to specific elements */
h1, h2, h3, h4, .section-title {
    animation: glow 1.5s infinite ease-in-out;
}

/* Pulsating elements with links */
.cta-button, .dropdown-btn, 
.gallery-controls, .social-icon,
.footer-section:first-child a,
.my-ad, .my-ad h3, .my-ad p, 
.my-ad .highlight-link,
.footer-section h3 {
    animation: pulse 2s infinite ease-in-out;
}

/* Specific animations for different elements */
.cta-button {
    animation: pulse 2s infinite ease-in-out, glow 1.5s infinite ease-in-out;
}

.footer-section:first-child a {
    animation: pulse 2s infinite ease-in-out, blue-glow 1.5s infinite ease-in-out;
}

.social-icon .fa-whatsapp { 
    animation: pulse 2s infinite ease-in-out, glow 1.5s infinite ease-in-out;
    text-shadow: 0 0 10px #25D366;
}

.social-icon .fa-telegram { 
    animation: pulse 2s infinite ease-in-out, glow 1.5s infinite ease-in-out;
    text-shadow: 0 0 10px #0088cc;
}

.social-icon .fa-instagram { 
    animation: pulse 2s infinite ease-in-out, glow 1.5s infinite ease-in-out;
    text-shadow: 0 0 10px #E1306C;
}

.my-ad .highlight-link {
    animation: rainbow-text 5s infinite linear, sparkle 1s infinite ease-in-out, glow 1.5s infinite ease-in-out;
}

.my-ad {
    animation: pulse 2s infinite ease-in-out, glow 1.5s infinite ease-in-out;
    transition: transform 1s ease;
}

.my-ad.animated {
    animation: rotate3d 2s ease-in-out, glow 1.5s infinite ease-in-out;
}

.cta-button.animated {
    animation: rotate3d 2s ease-in-out, glow 1.5s infinite ease-in-out;
}

.stat-item, .service-card, .review-card, .gallery-slide {
    animation: glow 1.5s infinite ease-in-out;
}

/* Remove pulse animation from regular text */
.about-text p, .service-card p, .review-text, 
.slide-description p, .footer-section p:not(.my-ad p),
.footer-bottom p, .stat-label, .stat-number,
.dropdown-item .name, .dropdown-item .phone {
    animation: none !important;
    text-shadow: none !important;
}

/* Add glow to phone numbers */
.dropdown-item .phone, .footer-section:first-child a {
    animation: blue-glow 1.5s infinite ease-in-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-content {
        padding: 0 10px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .dropdown-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .gallery-slide {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .contact-icons {
        gap: 10px;
    }
    
    .dropdown-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        padding: 8px;
    }
    
    .dropdown-menu {
        min-width: 180px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        padding: 10px;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .about, .services, .reviews, .gallery {
        padding: 60px 5vw;
    }
    
    .about-content, .services-grid, .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-slide {
        height: 250px;
    }
    
    .gallery-controls {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section.my-ad {
        padding: 15px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 5px;
    }
    
    .logo {
        width: 45px;
        height: 45px;
    }
    
    .dropdown-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
        padding: 6px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .service-card, .review-card {
        padding: 20px 15px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .gallery-slide {
        height: 200px;
    }
    
    .gallery-controls {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }

    .phone-link, .phone-icon {
  display: inline-block;        /* чтобы transform работал */
  color: #f3c440;               /* стартовый — золото */
  text-decoration: none;
  animation: phonePulse 1.5s infinite ease-in-out;
  transition: transform .15s;
}

/* на случай, если браузер применяет другой цвет к visited */
.phone-link:link,
.phone-link:visited {
  color: inherit;
}

/* ключевая анимация */
@keyframes phonePulse {
  0% {
    color: #f3c440;
    text-shadow: 0 0 6px #f3c440;
    transform: translateY(0) scale(1);
  }
  50% {
    color: #1e90ff;
    text-shadow: 0 0 18px #1e90ff;
    transform: translateY(-3px) scale(1.03);
  }
  100% {
    color: #f3c440;
    text-shadow: 0 0 6px #f3c440;
    transform: translateY(0) scale(1);
  }
}

/* чтобы иконка брала цвет ссылки */
.phone-icon { color: inherit; margin-right: 6px; }

    

    
