/* CSS Design System for Eser Mobilya */
:root {
    --primary: #f39221; /* Brand Orange */
    --primary-dark: #d87e1a;
    --dark: #1a1a1a;
    --dark-soft: #2d2d2d;
    --light: #fdf7f0; /* Light orange tint */
    --white: #ffffff;
    --gray: #666666;
    --glass: rgba(255, 255, 255, 0.05);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
    cursor: none; /* Hide default cursor for premium experience */
}

a, button, input, textarea, .view-btn, .wa-btn {
    cursor: none !important;
}

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

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Page Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}

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

.loader-bar {
    width: 0;
    height: 2px;
    background: var(--primary);
    margin-top: 20px;
    transition: width 0.5s ease;
}

/* Custom Cursor */
#cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background 0.3s;
    transform: translate(-50%, -50%);
}

#cursor.hover {
    width: 50px;
    height: 50px;
    background: rgba(243, 146, 33, 0.1);
    border-width: 1px;
}

/* Before/After Slider */
.ba-slider {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 15px;
    overflow: hidden;
}

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

.before-image {
    width: 50%;
    overflow: hidden;
    z-index: 2;
    border-right: 2px solid var(--white);
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.after-image img {
    width: 1200px; /* Force width for consistent comparison */
}

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

.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 40px;
    height: 100%;
    background: transparent;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-handle::after {
    content: '';
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.ba-handle i {
    position: absolute;
    color: var(--dark);
    font-size: 0.8rem;
    z-index: 6;
}

@media (max-width: 768px) {
    .ba-slider { height: 400px; }
    #cursor { display: none; }
    html { cursor: auto; }
}

/* Quality Section */
.quality {
    background: var(--white);
}

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

.quality-item {
    text-align: center;
    padding: 40px;
    border: 1px solid #eee;
    transition: var(--transition);
}

.quality-item:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.q-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 25px;
}

/* FAQ Section */
.faq {
    background: var(--light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.faq-question {
    padding: 20px 30px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    font-size: 0.8rem;
    transition: transform 0.4s;
}

.faq-item.active .faq-question {
    background: var(--primary);
    color: var(--white);
}

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

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: var(--gray);
}

.faq-item.active .faq-answer {
    padding: 20px 30px 30px;
    max-height: 200px;
}

@media (max-width: 992px) {
    .quality-grid { grid-template-columns: 1fr; }
}

/* Animations */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.main-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-text {
    font-size: 1.4rem;
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--primary);
    font-weight: 300;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--primary);
    opacity: 1;
}

.btn-contact {
    background: var(--primary);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    color: var(--white) !important;
    opacity: 1 !important;
}

.btn-contact:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    overflow: hidden;
}

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

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    animation: zoomOut 20s infinite alternate;
}

@keyframes zoomOut {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

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

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

.hero h1 span {
    color: var(--primary);
}

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

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.btn.primary {
    background: var(--primary);
    color: var(--white);
}

.btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.btn.secondary {
    border: 1px solid var(--white);
    color: var(--white);
}

.btn.secondary:hover {
    background: var(--white);
    color: var(--dark);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    background: var(--white);
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% { top: 8px; opacity: 1; }
    100% { top: 25px; opacity: 0; }
}

/* Sections General */
section {
    padding: 100px 0;
}

.subtitle {
    display: block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-size: 3rem;
    line-height: 1.2;
}

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

.service-card {
    padding: 50px 40px;
    background: var(--light);
    border-bottom: 4px solid transparent;
    transition: var(--transition);
}

.service-card:hover {
    background: var(--white);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

.custom-grid .item-img {
    height: 400px;
    position: relative;
    overflow: hidden;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.collection-item:hover .item-img img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.collection-item:hover .overlay {
    opacity: 1;
}

.view-btn {
    background: var(--white);
    color: var(--dark);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition);
}

.collection-item:hover .view-btn {
    transform: translateY(0);
}

.item-info {
    padding: 25px 0;
}

.item-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.item-info span {
    color: var(--gray);
    font-size: 0.9rem;
}

/* About */
.about-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 30px;
    color: var(--gray);
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary);
}

.stat-item span {
    font-weight: 500;
    color: var(--dark);
}

.about-img {
    flex: 1;
}

.img-frame {
    position: relative;
    padding-left: 40px;
    padding-bottom: 40px;
}

.img-frame::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 100%;
    height: 100%;
    border: 10px solid var(--primary);
    opacity: 0.3;
    z-index: -1;
}

.img-frame img {
    width: 100%;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.2);
}

/* Contact */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--dark);
    color: var(--white);
    border-radius: 10px;
    overflow: hidden;
}

.contact-info {
    padding: 80px 60px;
    background: var(--dark-soft);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-details {
    list-style: none;
    margin: 40px 0;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    opacity: 0.8;
}

.contact-details i {
    color: var(--primary);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

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

.contact-form {
    padding: 80px 60px;
    background: var(--white);
    color: var(--dark);
}

.form-group {
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

/* Map Section */
.map-container {
    margin-top: 50px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-container iframe {
    filter: grayscale(1) invert(0.9) contrast(1.2); /* Premium dark style map */
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

@media (max-width: 768px) {
    .map-overlay {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 15px;
        text-align: center;
    }
}

/* Footer */
footer {
    padding: 50px 0;
    border-top: 1px solid #eee;
}

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

footer .logo {
    color: var(--dark);
}

/* WhatsApp Partners & Floating */
.whatsapp-partners {
    margin-top: 30px;
}

.whatsapp-partners h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.whatsapp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wa-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.wa-card:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.wa-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: var(--transition);
}

.floating-wa:hover .wa-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.wa-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 15px;
    border-radius: 6px;
    transition: var(--transition);
    background: var(--light);
}

.wa-menu a:hover {
    background: var(--primary);
    color: var(--white);
}

.wa-btn {
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* References Slider */
.references {
    background: var(--light);
    overflow: hidden;
}

.logos-slider {
    padding: 40px 0;
    position: relative;
}

.logos-track {
    display: flex;
    width: calc(250px * 12);
    animation: scroll 30s linear infinite;
}

.logo-item {
    width: 250px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--gray);
    opacity: 0.6;
    transition: var(--transition);
}

.logo-item i {
    font-size: 2rem;
    color: var(--primary);
}

.logo-item:hover {
    opacity: 1;
    color: var(--dark);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 6)); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    max-width: 1000px;
    width: 100%;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    animation: modalIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
}

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

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-img {
    height: 500px;
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 60px;
}

.modal-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.modal-features {
    list-style: none;
    margin: 30px 0;
}

.modal-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.modal-features i {
    color: var(--primary);
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    .modal-img {
        height: 300px;
    }
    .modal-info {
        padding: 30px;
    }
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 1200px) {
    .custom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .services-grid, .about-content, .contact-box {
        grid-template-columns: 1fr;
    }
    .custom-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-btns .btn {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    /* Mobile Menu Styles */
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        background: rgba(18, 18, 18, 0.6);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        border-left: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        opacity: 1;
    }
    
    .btn-contact {
        width: 200px;
        text-align: center;
    }
}
