:root {
    --primary: #7707A7;
    --primary-dark: #36044C;
    --primary-light: #D59CE9;
    --primary-lighter: #F5CEFF;
    --bg-dark: #0a0510;
    --bg-card: rgba(54, 4, 76, 0.4);
    --text-main: #f8f8f8;
    --text-muted: #D59CE9;
    --glass-bg: rgba(20, 10, 30, 0.6);
    --glass-border: rgba(213, 156, 233, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
    color: #e0e0e0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-lighter);
    margin-bottom: 50px;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(119, 7, 167, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(119, 7, 167, 0.8);
    background: linear-gradient(135deg, #8a0abf, var(--primary-dark));
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: white;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(119, 7, 167, 0.4);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 5, 16, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
}

.nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-light);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 5, 16, 0.8), rgba(10, 5, 16, 0.4)), url('../images/after_interior_1783980267136.webp') center/cover;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    background: -webkit-linear-gradient(45deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 40px;
}

/* About Section */
.about {
    padding: 25px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    min-height: 400px;
    background: linear-gradient(135deg, rgba(119, 7, 167, 0.2), rgba(54, 4, 76, 0.5));
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}

.about-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.glass-content {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    width: 100%;
    backdrop-filter: blur(5px);
    border-top: 1px solid var(--glass-border);
    z-index: 2;
}

/* Services Section */
.services {
    padding: 25px 0;
    background: linear-gradient(to bottom, var(--bg-dark), #11081a);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    padding: 0;
    overflow: hidden;
    transition: transform 0.4s, box-shadow 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(119, 7, 167, 0.3);
}

.service-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.5s ease;
}

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

.service-card h3 {
    margin: 25px 25px 10px;
    color: var(--primary-lighter);
}

.service-card p {
    margin: 0 25px 30px;
}

/* Process Section */
.process {
    padding: 25px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 40px 20px;
    transition: transform 0.3s;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(119, 7, 167, 0.4);
}

.process-step h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.process-step p {
    font-size: 0.9rem;
    color: #ccc;
}

/* Before / After Section */
.before-after {
    padding: 25px 0;
}

.ba-slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.ba-image.before {
    width: 50%; /* Initial state */
    border-right: 2px solid var(--primary-light);
}

.ba-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
}

.ba-slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary-light);
    z-index: 5;
    pointer-events: none;
    transform: translateX(-50%);
}

.ba-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(119, 7, 167, 0.8);
}

.ba-slider-button svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* Pricing Section */
.pricing {
    padding: 25px 0;
    background: linear-gradient(to top, var(--bg-dark), #11081a);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.price-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.price-card.popular {
    background: rgba(119, 7, 167, 0.15);
    border-color: var(--primary);
    transform: scale(1.05);
    padding: 60px 30px;
    box-shadow: 0 10px 40px rgba(119, 7, 167, 0.2);
}

.price-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

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

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary);
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 700;
}

.price {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.price span {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.price-card ul li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.price-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-light);
    font-weight: 700;
}

/* Reviews Section */
.reviews {
    padding: 25px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    transition: transform 0.3s;
}

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

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.review-card p {
    font-style: italic;
    margin-bottom: 25px;
}

.client-info {
    border-top: 1px solid var(--glass-border);
    padding-top: 15px;
    display: flex;
    flex-direction: column;
}

.client-info strong {
    color: var(--primary-lighter);
}

.client-info span {
    font-size: 0.9rem;
    color: #999;
}

/* FAQ Section */
.faq {
    padding: 25px 0;
    background: linear-gradient(to bottom, var(--bg-dark), #11081a);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(20, 10, 30, 0.4);
    overflow: hidden;
}

.faq-btn {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s, color 0.3s;
}

.faq-btn:hover {
    background: rgba(119, 7, 167, 0.1);
}

.faq-btn.active {
    color: var(--primary-light);
    background: rgba(119, 7, 167, 0.15);
}

.faq-btn::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-btn.active::after {
    content: '−';
    transform: rotate(90deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-content p {
    padding: 0 20px 20px;
    margin: 0;
    color: #ccc;
}

/* Philosophy Section */
.philosophy {
    padding: 25px 0;
    position: relative;
}

.philosophy::before {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.3;
    border-radius: 50%;
    z-index: -1;
}

.highlight-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-lighter);
    margin-top: 30px;
    border-left: 4px solid var(--primary);
    padding-left: 20px;
}

/* Contact CTA Section */
.contact-cta {
    padding: 25px 0;
}

.cta-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 30px auto 0;
}

.contact-form input {
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus {
    border-color: var(--primary-light);
}

/* Footer */
.footer {
    background: #050208;
    padding: 50px 0 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo img {
    height: 50px;
}

.nav a:not(.btn) {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:not(.btn):hover {
    color: var(--primary-light);
}

.header-phone {
    font-weight: 700 !important;
    color: var(--primary-lighter) !important;
    margin-right: 15px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-lighter);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-copy {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0;
}

/* Floating Widgets */
.floating-phone {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
}

.floating-messengers {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 9999;
}

.messengers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.floating-messengers:hover .messengers-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.messengers-list .messenger-btn {
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-messengers:hover .messengers-list .telegram {
    transform: scale(1);
    opacity: 1;
    transition-delay: 0.05s;
}

.floating-messengers:hover .messengers-list .viber {
    transform: scale(1);
    opacity: 1;
    transition-delay: 0.1s;
}

.floating-messengers:hover .messengers-list .whatsapp {
    transform: scale(1);
    opacity: 1;
    transition-delay: 0.15s;
}

.main-messenger-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

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

.floating-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.messenger-btn {
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

/* Base phone button with pulse */
.phone-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    animation: pulse-ring 2s infinite;
}

.phone-btn svg {
    width: 28px;
    height: 28px;
    animation: phone-shake 2s infinite ease-in-out;
}

.messenger-btn:hover {
    background: var(--primary);
    transform: scale(1.1) translateY(-5px) !important;
    transition-delay: 0s !important;
    box-shadow: 0 10px 20px rgba(119, 7, 167, 0.5);
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(119, 7, 167, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(119, 7, 167, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(119, 7, 167, 0);
    }
}

@keyframes phone-shake {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 992px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .price-card.popular { transform: scale(1); padding: 40px 30px; }
    .price-card.popular:hover { transform: translateY(-10px); }
    .services-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .process-grid { grid-template-columns: 1fr 1fr; }
    .reviews-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .hero-content { text-align: center; }
    .hero { justify-content: center; }
    .about-image { min-height: 250px; }
    .ba-slider-container { height: 300px; }
}

/* Digi Studio Footer Logo */
.digi-studio {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 0;
    color: #999;
}

.digi-text {
    font-size: 0.55rem;
    text-align: right;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.digi-logo {
    height: 45px;
    animation: blink-logo 2s infinite ease-in-out;
}

@keyframes blink-logo {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

/* Responsive Design (Mobile & Tablet) */
@media (max-width: 992px) {
    .about-grid, .services-grid, .pricing-grid, .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: rgba(10, 5, 16, 0.95);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transition: right 0.4s ease;
        z-index: 1000;
        border-left: 1px solid var(--glass-border);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav a {
        margin: 0;
        font-size: 1.2rem;
    }
    
    .about-grid, .services-grid, .pricing-grid, .reviews-grid, .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .ba-slider-container {
        height: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .header .container {
        padding: 0 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
