/* ==========================================================================
   CSS Variables & Base
   ========================================================================== */
:root {
    --gold: #C8A97E;
    --accent: #B8975A;
    --dark: #0D0D0D;
    --charcoal: #1A1A1A;
    --light-gray: #F5F5F0;
    --white: #FFFFFF;
    --text-muted: #888880;

    --font-heading: 'Cormorant Garamond', serif;
    --font-subhead: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark);
    color: var(--light-gray);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* For custom cursor */
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold);
}

.text-muted {
    color: var(--text-muted);
}

.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.w-100 { width: 100%; }
.d-block { display: block; }

.bg-dark { background-color: var(--dark); }
.bg-charcoal { background-color: var(--charcoal); }

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 10px;
    color: var(--gold);
}

.section-subtitle {
    font-family: var(--font-subhead);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-subhead);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--dark);
}

.btn-primary:hover {
    background-color: var(--accent);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--dark);
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gold);
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gold);
    transition: width 0.2s, height 0.2s;
}

.cursor-ring.active {
    width: 60px;
    height: 60px;
    background-color: rgba(200, 169, 126, 0.1);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    transition: all 0.4s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: rgba(13, 13, 13, 0.95);
    padding: 15px 0;
    border-bottom: 1px solid var(--gold);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-subhead);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    color: var(--white);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&q=80') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtext {
    font-family: var(--font-subhead);
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    z-index: 2;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--dark);
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--gold);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.learn-more {
    font-family: var(--font-subhead);
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why-us-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-us-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.stat-item h4 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--gold);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-item p {
    font-family: var(--font-subhead);
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.points-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   Projects Gallery
   ========================================================================== */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    padding: 8px 20px;
    cursor: pointer;
    font-family: var(--font-subhead);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 5px;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-overlay i {
    color: var(--gold);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.gallery-item:hover .gallery-overlay h4,
.gallery-item:hover .gallery-overlay i {
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border: 2px solid var(--gold);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3rem);
    cursor: pointer;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: var(--gold);
}

/* ==========================================================================
   Process Steps
   ========================================================================== */
.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(200, 169, 126, 0.3);
    z-index: 1;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--dark);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--gold);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -30px;
    right: 10%;
    font-weight: 700;
}

.process-step h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    text-align: center;
    padding: 20px 40px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.stars {
    color: var(--gold);
    margin-bottom: 20px;
}

.quote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 30px;
    color: var(--white);
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.client-info h5 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.client-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    cursor: pointer;
    z-index: 10;
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--gold);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.detail-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.detail-item i {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--gold);
    margin-top: 5px;
}

.detail-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.contact-form {
    background: var(--charcoal);
    padding: 40px;
    border-radius: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    border-radius: 3px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #0D0D0D;
    border-top: 1px solid rgba(200, 169, 126, 0.1);
    padding-top: 80px;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 20px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: var(--dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gold);
    color: var(--dark);
    padding: 12px 24px;
    border-radius: 3px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==========================================================================
   RTL CSS RULES
   ========================================================================== */
[dir="rtl"] .navbar {
  flex-direction: row-reverse;
}
[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}
[dir="rtl"] .hero-content {
  text-align: right;
}
[dir="rtl"] .service-card {
  text-align: right;
}
[dir="rtl"] .why-us-content {
  text-align: right;
}
[dir="rtl"] .why-us-container {
  /* No flex direction reverse needed if using grid, but text align right helps */
}
[dir="rtl"] .contact-container {
  /* Using grid, but can make text align right */
  text-align: right;
}
[dir="rtl"] .step-icon i {
  /* if any arrows exist */
}
[dir="rtl"] .footer-grid {
  direction: rtl;
}
[dir="rtl"] .points-list li {
  justify-content: flex-start;
  flex-direction: row-reverse;
}
[dir="rtl"] .points-list li i {
  margin-left: 10px;
  margin-right: 0;
}
[dir="rtl"] .detail-item {
  flex-direction: row-reverse;
  text-align: right;
}
[dir="rtl"] .detail-item i {
  margin-left: 20px;
}
[dir="rtl"] .contact-form-container {
  text-align: right;
}
[dir="rtl"] * {
  letter-spacing: 0 !important;
}

/* ==========================================================================
   LANG TOGGLE BUTTON STYLE
   ========================================================================== */
#lang-toggle {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  margin-left: 16px;
}
#lang-toggle:hover {
  background: var(--gold);
  color: var(--dark);
}
/* In RTL mode */
[dir="rtl"] #lang-toggle {
  margin-left: 0;
  margin-right: 16px;
}

