:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --gold: #D4AF37;
    --gold-dim: rgba(212, 175, 55, 0.3);
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.gold-text {
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-dim);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

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

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: all 0.4s ease;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 102;
}

.logo img {
    height: 40px;
    filter: drop-shadow(0 0 10px var(--gold-dim));
}

.logo span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 102;
}

.phone {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid var(--gold);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s;
}

.phone:hover {
    background: var(--gold);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--gold-dim);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 15px;
    cursor: pointer;
    z-index: 110;
}

.burger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--gold);
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
}
.burger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    max-width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    z-index: 105;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 104;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s;
}

.mobile-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 3rem;
    gap: 2rem;
}

.mobile-link {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateX(20px);
}

.mobile-sidebar.active .mobile-link {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.4s ease 0.3s;
}
.mobile-sidebar.active .mobile-link:nth-child(2) { transition-delay: 0.4s; }
.mobile-sidebar.active .mobile-link:nth-child(3) { transition-delay: 0.5s; }
.mobile-sidebar.active .mobile-link:nth-child(4) { transition-delay: 0.6s; }
.mobile-sidebar.active .mobile-link:nth-child(5) { transition-delay: 0.7s; }

.mobile-link:hover {
    color: var(--gold);
    transform: translateX(10px) !important;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    padding: 3rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(50px);
    transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--gold);
}

.modal-content input {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

.modal-content input:focus {
    border-color: var(--gold);
}

.w-100 {
    width: 100%;
}

/* Floating Widget */
.floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 150;
}

.widget-content {
    display: flex;
    align-items: center;
    background: rgba(20,20,20,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 5px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    overflow: hidden;
}

.widget-icon {
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-color);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.widget-icon svg {
    width: 24px;
    height: 24px;
}

.widget-text {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    font-weight: 600;
    font-family: var(--font-body);
    transition: max-width 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.widget-content:hover {
    box-shadow: 0 10px 30px var(--gold-dim);
}

.widget-content:hover .widget-text {
    max-width: 200px;
    opacity: 1;
    padding: 0 15px;
}

.widget-content:hover .widget-icon {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.4) 100%);
}

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

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 3rem;
    max-width: 600px;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--gold);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    border: none;
    font-family: var(--font-body);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--gold-dim);
    transform: translateY(-2px);
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    /* Transform properties for tilt effect */
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s;
}

/* About Section */
.about {
    padding: 10rem 0;
}

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

.about-text p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 3rem;
}

.stats {
    display: flex;
    gap: 4rem;
}

.stat-num {
    font-size: 4rem;
    font-family: var(--font-heading);
    color: var(--gold);
    line-height: 1;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    color: #888;
}

.about-image {
    padding: 1rem;
}
.about-image img {
    width: 100%;
    border-radius: 12px;
}

/* Workflow Timeline Section */
.workflow-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, #080808 100%);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background: rgba(255,255,255,0.1);
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 0%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 4rem;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.timeline-item.active {
    opacity: 1;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.5s ease;
}

.timeline-item.active .timeline-dot {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-dim);
}

.timeline-content {
    padding: 2rem;
}

.timeline-content h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Before & After Section */
.before-after-section {
    padding: 5rem 0;
}

.ba-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
}

.ba-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 15px;
    user-select: none; /* PREVENT TEXT SELECTION */
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* PREVENT IMAGE DRAGGING */
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-user-drag: none; /* PREVENT DRAG in Webkit */
}

.ba-before {
    width: 50%;
    z-index: 2;
}

.ba-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 40px;
    height: 100%;
    margin-left: -20px;
    z-index: 3;
    cursor: ew-resize;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ba-slider-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold-dim);
}

/* NEW SLIDER BUTTON DESIGN */
.ba-slider-button {
    position: relative;
    width: 30px;
    height: 70px;
    background: rgba(20,20,20,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--gold);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5), inset 0 0 10px rgba(212,175,55,0.2);
    transition: transform 0.2s, background 0.3s;
}

.ba-slider-button .arrow-left, .ba-slider-button .arrow-right {
    width: 0; 
    height: 0; 
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.ba-slider-button .arrow-left {
    border-right: 5px solid var(--gold);
}

.ba-slider-button .arrow-right {
    border-left: 5px solid var(--gold);
}

.ba-slider:active .ba-slider-button {
    transform: scale(0.95);
    background: rgba(20,20,20,0.9);
}

.ba-label {
    position: absolute;
    top: 20px;
    padding: 5px 15px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    color: white;
    font-weight: bold;
    border-radius: 4px;
    z-index: 4;
    pointer-events: none;
}

.label-before { left: 20px; }
.label-after { right: 20px; }

/* Gallery Horizontal Scroll */
.gallery-section {
    padding: 5rem 0;
    overflow: hidden;
}

.gallery-container {
    width: 100%;
    height: 70vh; 
}

.gallery-wrapper {
    display: flex;
    width: max-content;
    height: 100%;
    padding-left: 10vw;
    gap: 3rem;
}

.gallery-item {
    position: relative;
    width: 60vw;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none; /* disable drag */
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0) translateZ(30px); /* 3D pop */
    opacity: 1;
}

.gallery-info h3 {
    font-size: 2rem;
    color: var(--gold);
}

/* Pricing Table */
.pricing-section {
    padding: 8rem 0;
}

.pricing-table {
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 2rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:not(.table-header):hover {
    background: rgba(212, 175, 55, 0.05);
    transform: scale(1.01);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-radius: 8px;
}

.table-row:not(.table-header):hover .col:first-child strong {
    color: var(--gold);
}

.table-header {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    font-size: 0.9rem;
}

.col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* Calculator Section */
.calculator-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, #0a0a0a 100%);
}

.calc-wrapper {
    padding: 4rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.input-group {
    margin-bottom: 2.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #ccc;
}

#area-val {
    color: var(--gold);
    font-weight: bold;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 15px var(--gold-dim);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #333;
    border-radius: 2px;
}

/* Custom Select Dropdown */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-select-trigger:hover, .custom-select.open .custom-select-trigger {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.custom-select.open .arrow {
    transform: rotate(225deg) translate(-3px, -3px);
    border-color: var(--gold);
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    display: block;
    padding: 1rem;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-option:hover {
    background: rgba(212, 175, 55, 0.1);
    color: white;
    padding-left: 1.5rem;
}

.custom-option.selected {
    color: var(--gold);
    background: rgba(255,255,255,0.02);
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    transition: all 0.3s;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--gold);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--gold);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid var(--bg-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.calc-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--glass-border);
    padding-left: 4rem;
}

.calc-result h3 {
    color: #888;
    margin-bottom: 1rem;
}

.price-display {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 2rem;
    line-height: 1;
    text-shadow: 0 0 30px var(--gold-dim);
}

.currency {
    font-size: 2rem;
}

/* FAQ Section */
.faq-section {
    padding: 8rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--gold-dim);
}

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

.faq-header h3 {
    font-size: 1.2rem;
    margin: 0;
    font-family: var(--font-body);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

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

.faq-content p {
    padding-top: 1rem;
    color: #aaa;
}

/* Footer */
.footer {
    background: #020202;
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-contacts a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-contacts a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #666;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .about-grid, .calc-wrapper { grid-template-columns: 1fr; }
    .calc-result { border-left: none; border-top: 1px solid var(--glass-border); padding-left: 0; padding-top: 3rem; }
    .gallery-item { width: 80vw; }
    .ba-container { height: 400px; }
}

@media (max-width: 768px) {
    .nav-links, .phone { display: none; }
    .burger-menu { display: flex; }
    .hero h1 { font-size: 2.5rem; }
    .stats { flex-direction: column; gap: 2rem; }
    .price-display { font-size: 2.5rem; }
    .table-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .table-header { display: none; }
    .table-row:not(.table-header) {
        border: 1px solid rgba(255,255,255,0.05);
        margin-bottom: 1rem;
    }
    .ba-container { height: 300px; }
    .faq-item { padding: 1rem; }
    .timeline-item { padding-left: 40px; }
}
