/**
 * YRealEstate Professional Theme - Main Stylesheet
 * Version: 2.0.0
 * Fully Dynamic | Production Ready
 */


/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
    --color-primary: var(--color-primary, #1B5E20);
    --color-secondary: var(--color-secondary, #D4A574);
    --color-dark: var(--color-dark, #1A1A2E);
    --color-light: var(--color-light, #FAFAFA);
    --color-text: var(--color-text, #2C2C2C);
    --color-text-light: var(--color-text-muted, #6B7280);
    --color-white: #ffffff;
    --color-success: var(--color-success, #4CAF50);
    --color-warning: var(--color-warning, #FF9800);
    --color-error: var(--color-danger, #E53935);
    --btn-primary-bg: var(--color-secondary, #D4A574);
    --btn-primary-text: var(--color-white);
    --btn-secondary-bg: var(--color-primary, #1B5E20);
    --btn-radius: 50px;
    --font-primary: var(--font-primary, 'Cairo', sans-serif);
    --font-secondary: var(--font-secondary, 'Tajawal', sans-serif);
    --font-size-base: var(--font-size-base, 16px);
    --line-height: var(--line-height-normal, 1.7);
    --font-h1: var(--font-size-3xl, 3.5rem);
    --font-h2: var(--font-size-2xl, 2.5rem);
    --font-h3: var(--font-size-xl, 1.75rem);
    --font-weight-heading: var(--font-weight-extrabold, 800);
    --header-height: var(--header-height, 80px);
    --header-bg: var(--color-surface, #ffffff);
    --header-bg-scrolled: var(--color-dark, #1A1A2E);
    --header-text: var(--text-inverse, #ffffff);
    --header-text-scrolled: var(--color-dark, #1A1A2E);
    --logo-width: 180px;
    --hero-height: 100vh;
    --hero-height-inner: 60vh;
    --hero-min-height: 600px;
    --hero-overlay: var(--color-dark, #1A1A2E);
    --hero-overlay-opacity: 0.7;
    --footer-bg: var(--color-dark, #1A1A2E);
    --footer-text: var(--text-inverse, #ffffff);
    --footer-padding: 80px 40px 40px;
    --shadow-sm: var(--shadow-sm, 0 2px 10px rgba(0, 0, 0, 0.08));
    --shadow-md: var(--shadow-md, 0 10px 30px rgba(0, 0, 0, 0.12));
    --shadow-lg: var(--shadow-lg, 0 20px 60px rgba(0, 0, 0, 0.2));
    --shadow-xl: var(--shadow-xl, 0 40px 80px rgba(0, 0, 0, 0.3));
    --transition-fast: var(--transition-fast, 0.15s ease);
    --transition-normal: var(--transition-normal, 0.3s ease);
    --transition-slow: var(--transition-slow, 0.5s ease);
    --border-radius-sm: var(--radius-sm, 8px);
    --border-radius-md: var(--radius-md, 12px);
    --border-radius-lg: var(--card-radius, 20px);
    --border-radius-xl: var(--radius-2xl, 30px);
}


/* ============================================
   BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-light);
    direction: inherit;
    text-align: start;
    overflow-x: hidden !important;
    max-width: 100% !important;
}

html[dir="rtl"] body {
    direction: rtl;
}

html[dir="ltr"] body {
    direction: ltr;
}

html {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

ul,
ol {
    list-style: none;
}


/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-heading);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--font-h1);
}

h2 {
    font-size: var(--font-h2);
}

h3 {
    font-size: var(--font-h3);
}


/* Header */

body .header-container {
    width: 100% !important;
    padding: 0 2rem !important;
}

.yre-title-gradient {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.yre-highlight {
    position: relative;
    display: inline;
}

.yre-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 30%;
    background: color-mix(in srgb, var(--color-secondary) 30%, transparent);
    z-index: -1;
}

[dir="rtl"] span.header-hotline-icon,
[dir="rtl"] .cta-icon,
[dir="rtl"] .contact-icon-box {
    transform: scaleX(-1);
}


/* ============================================
   LAYOUT
   ============================================ */

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

.section {
    padding: 80px 0;
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--badge-bg, linear-gradient(135deg, var(--color-primary), var(--color-dark)));
    color: var(--badge-text, var(--color-white));
    padding: 8px 20px;
    border-radius: var(--border-radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-badge svg {
    width: 16px;
    height: 16px;
}

.section-title {
    color: var(--color-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}


/* ============================================
   BUTTONS
   ============================================ */

.yre-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--btn-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.yre-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.yre-btn-primary {
    background: linear-gradient(135deg, var(--btn-primary-bg), var(--color-accent));
    color: var(--btn-primary-text);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--color-secondary) 30%, transparent);
}

.yre-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px color-mix(in srgb, var(--color-secondary) 40%, transparent);
    color: var(--btn-primary-text);
}

.yre-btn-secondary {
    background: linear-gradient(135deg, var(--btn-secondary-bg), var(--color-primary-light));
    color: var(--color-white);
}

.yre-btn-secondary:hover {
    transform: translateY(-3px);
    color: var(--color-white);
}

.yre-btn-outline {
    background: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

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

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

.yre-btn-lg {
    padding: 18px 40px;
    font-size: 1.125rem;
}

.yre-btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}


/* ============================================
   HEADER
   ============================================ */

.yre-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.yre-header.transparent {
    background: transparent;
}

.yre-header.scrolled {
    background: var(--header-bg-scrolled);
    box-shadow: var(--shadow-md);
}

.yre-header.scrolled .yre-nav a {
    color: var(--header-text);
}

.yre-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.yre-logo img {
    width: var(--logo-width);
    height: auto;
}

.yre-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
}

.yre-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.yre-nav a {
    color: var(--header-text);
    font-weight: 500;
    position: relative;
}

.yre-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width var(--transition-fast);
}

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


/* ============================================
   HERO SECTION
   ============================================ */

.yre-hero {
    position: relative;
    min-height: var(--hero-height);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.yre-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.yre-hero-video {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.yre-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.yre-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding-top: var(--header-height);
}

.yre-hero[data-align="center"] .yre-hero-content {
    justify-content: center;
    text-align: center;
}

.yre-hero[data-align="center"] .yre-hero-text {
    max-width: 800px;
}

.yre-hero-text {
    flex: 1;
    max-width: 650px;
}

.yre-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: var(--border-radius-xl);
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.yre-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-white);
    margin-bottom: 25px;
    line-height: 1.2;
}

.yre-hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.8;
}

.yre-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.yre-hero-form-wrapper {
    width: 420px;
    flex-shrink: 0;
}

.yre-hero-form-white {
    background: var(--color-white);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.yre-hero-form-dark {
    background: var(--color-dark);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    color: var(--color-white);
}

.yre-hero-form-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 35px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.yre-hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* ============================================
   STATS SECTION
   ============================================ */

.yre-stats {
    background: var(--section-bg-alt);
    padding: 80px 40px;
    position: relative;
}

.yre-stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 50px 50px;
}

.yre-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 1;
}

.yre-stat-item {
    text-align: center;
    color: var(--color-white);
}

.yre-stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    padding: 15px;
    background: color-mix(in srgb, var(--color-secondary) 20%, transparent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yre-stat-icon svg {
    width: 30px;
    height: 30px;
    color: var(--color-secondary);
}

.yre-stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: 10px;
}

.yre-stat-label {
    font-size: 1.125rem;
    opacity: 0.9;
}


/* ============================================
   PROJECTS SECTION
   ============================================ */

.yre-projects {
    background-color: var(--section-bg-primary);
    padding: 100px 0;
}

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

.yre-project-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.yre-project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.yre-project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.yre-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.yre-project-card:hover .yre-project-image img {
    transform: scale(1.1);
}

.yre-project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 15px;
    border-radius: var(--border-radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.yre-project-status.new {
    background: var(--color-success);
    color: var(--color-white);
}

.yre-project-status.ready {
    background: var(--color-secondary);
    color: var(--color-white);
}

.yre-project-status.construction {
    background: var(--color-warning);
    color: var(--color-dark);
}

.yre-project-content {
    padding: 25px;
}

.yre-project-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.yre-project-location svg {
    width: 16px;
    height: 16px;
}

.yre-project-title {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.yre-project-excerpt {
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.yre-project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #eee);
}

.yre-project-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.yre-project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 600;
}

.yre-project-link svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.yre-project-link:hover svg {
    transform: translateX(-5px);
}


/* ============================================
   FEATURES SECTION
   ============================================ */

.yre-features {
    background: var(--section-bg-alt);
    padding: 100px 0;
    position: relative;
}

.yre-features .section-header {
    color: var(--color-white);
}

.yre-features .section-title {
    color: var(--text-primary);
}

.yre-features .section-subtitle {
    color: var(--text-secondary);
}

.yre-features-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols, 4), 1fr);
    gap: 30px;
}

.yre-feature-card {
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.yre-feature-card.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.yre-feature-card.solid {
    background: var(--color-white);
    color: var(--color-dark);
}

.yre-feature-card.outline {
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.yre-feature-card.glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-secondary);
}

.yre-feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    padding: 20px;
    background: color-mix(in srgb, var(--color-secondary) 20%, transparent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yre-feature-icon svg {
    width: 30px;
    height: 30px;
    color: var(--color-secondary);
}

.yre-feature-title {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 15px;
}

.yre-feature-card.solid .yre-feature-title {
    color: var(--color-dark);
}

.yre-feature-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.yre-feature-card.solid .yre-feature-desc {
    color: var(--color-text-light);
}


/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.yre-testimonials {
    background-color: var(--section-bg-primary);
    padding: 100px 0;
}

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

.yre-testimonial-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.yre-testimonial-card::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23c9a227"><path d="M14.017 21v-7.391c0-5.704 3.731-9.57 8.983-10.609l.995 2.151c-2.432.917-3.995 3.638-3.995 5.849h4v10h-9.983zm-14.017 0v-7.391c0-5.704 3.748-9.57 9-10.609l.996 2.151c-2.433.917-3.996 3.638-3.996 5.849h3.983v10h-9.983z"/></svg>') no-repeat;
    opacity: 0.1;
}

.yre-testimonial-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.yre-testimonial-stars svg {
    width: 20px;
    height: 20px;
    color: var(--color-secondary);
    fill: var(--color-secondary);
}

.yre-testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-style: italic;
}

.yre-testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.yre-testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.yre-testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yre-testimonial-avatar svg {
    width: 30px;
    height: 30px;
    color: var(--color-white);
}

.yre-testimonial-name {
    font-weight: 700;
    color: var(--color-card-title);
    margin-bottom: 5px;
}

.yre-testimonial-role {
    font-size: 0.875rem;
    color: var(--color-card-text);
}


/* ============================================
   CTA SECTION
   ============================================ */

.yre-cta {
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.9) 0%, rgba(var(--color-secondary-rgb), 0.48) 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.yre-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, color-mix(in srgb, var(--color-secondary) 10%, transparent) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.yre-cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.yre-cta-title {
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

.yre-cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}


/* Contact page */

.contact-info {
    color: var(--color-primary)
}


/* ============================================
   FOOTER
   ============================================ */

.yre-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: var(--footer-padding);
}

.yre-footer-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 60px;
}

.yre-footer-logo {
    margin-bottom: 20px;
}

.yre-footer-logo img {
    max-width: 180px;
}

.yre-footer-about {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 25px;
}

.yre-footer-social {
    display: flex;
    gap: 15px;
}

.yre-footer-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    transition: all var(--transition-fast);
}

.yre-footer-social a:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
}

.yre-footer-social svg {
    width: 20px;
    height: 20px;
}

.yre-footer-title {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.yre-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--color-secondary);
}

.yre-footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.yre-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
}

.yre-footer-links a:hover {
    color: var(--color-secondary);
    padding-right: 10px;
}

.yre-footer-links svg {
    width: 16px;
    height: 16px;
}

.yre-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.yre-footer-contact-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--color-secondary);
}

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

.yre-footer-copyright {
    color: rgba(255, 255, 255, 0.7);
}


/* ============================================
   FLOATING ELEMENTS
   ============================================ */


/* ============================================
   ULTRA-MODERN FLOATING ELEMENTS
   ============================================ */

.yre-floating-elements {
    position: fixed;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.yre-floating-left {
    left: 30px;
    bottom: 30px;
}

.yre-floating-right {
    right: 30px;
    bottom: 30px;
}


/* Glassmorphism Classes - Applied to popups/buttons, not containers */

.yre-floating-elements.glass-effect {
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.glass-effect:not(.yre-floating-elements) {
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .glass-effect {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}


/* Floating Buttons */

.yre-floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.yre-floating-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: 0.3s;
    z-index: 1;
    pointer-events: none;
}

.yre-floating-btn:hover::after {
    opacity: 1;
}

.yre-floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.yre-floating-btn svg {
    width: 26px;
    height: 26px;
    z-index: 3;
    position: relative;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}


/* Ensure stroke/fill icons inherit button color on every template (no “empty circle” on inner pages). */

.yre-floating-btn svg,
.yre-floating-btn svg *,
.yre-mobile-dock .dock-item svg,
.yre-mobile-dock .dock-item svg * {
    vector-effect: non-scaling-stroke;
}


/* Outline message icon: non-scaling-stroke + overflow hidden can hide strokes; use normal stroke scaling. */

.yre-floating-btn.contact svg,
.yre-floating-btn.contact svg *,
.dock-item.contact-trigger svg,
.dock-item.contact-trigger svg * {
    vector-effect: none;
}

.yre-floating-btn.contact svg,
.yre-floating-btn.contact svg *,
.dock-item.contact-trigger svg,
.dock-item.contact-trigger svg * {
    stroke: #fff !important;
    fill: none !important;
}

.yre-floating-btn.contact svg path,
.dock-item.contact-trigger svg path {
    display: block !important;
    opacity: 1 !important;
    stroke: #fff !important;
    stroke-width: 2.25 !important;
    fill: none !important;
}


/* Slight inset so stroke is not clipped by overflow:hidden on the circular button. */

.yre-floating-btn.contact svg,
.dock-item.contact-trigger svg {
    transform: scale(0.9);
    transform-origin: center center;
}


/* Floating WhatsApp: JS replaces with filled glyph. */

.yre-floating-btn.whatsapp svg,
.yre-floating-btn.whatsapp svg * {
    fill: currentColor !important;
    stroke: none !important;
}


/* Mobile dock WhatsApp: keeps theme outline icon (stroke). */

.dock-item.whatsapp svg,
.dock-item.whatsapp svg * {
    stroke: currentColor !important;
    fill: none !important;
}

.yre-floating-btn.call svg,
.yre-floating-btn.call svg * {
    stroke: currentColor !important;
    fill: none !important;
}

.yre-floating-btn.contact {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    color: #fff !important;
}

.yre-floating-btn.whatsapp {
    background: #25D366;
    color: white;
}

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


/* Pulse Animation for WhatsApp */

.pulse {
    animation: yre-pulse 2s infinite;
}

@keyframes yre-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* Popup Glass UI */

.yre-floating-popup {
    position: absolute;
    bottom: 80px;
    width: 380px;
    border-radius: 24px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2001;
    box-shadow: var(--shadow-xl);
}

.yre-floating-left .yre-floating-popup {
    left: 0;
    transform-origin: left bottom;
}

.yre-floating-right .yre-floating-popup {
    right: 0;
    transform-origin: right bottom;
}

.yre-floating-form-btn.active .yre-floating-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.yre-floating-popup-header {
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yre-floating-popup-header h4 {
    margin: 0;
    font-size: 1.25rem;
    color: white;
}

body.light-mode .yre-floating-popup-header h4 {
    color: var(--color-dark);
}

.close-popup {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.6;
    transition: 0.3s;
}

body.light-mode .close-popup {
    color: var(--color-dark);
}

.close-popup:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.yre-floating-popup-body {
    padding: 25px;
}


/* Mobile Docked Bar */

.yre-mobile-dock {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    z-index: 9999;
    align-items: center;
    justify-content: space-around;
    padding: 10px 15px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    background: var(--color-dark) !important;
}

body.light-mode .yre-mobile-dock {
    background: var(--color-surface) !important;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: 0.3s;
}

.dock-item svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.dock-item span {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

body.light-mode .dock-item svg,
body.light-mode .dock-item span {
    color: var(--color-dark) !important;
}

.dock-item.whatsapp svg {
    color: #25D366;
}

body.light-mode .dock-item.whatsapp svg {
    color: #128C7E;
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .behavior-dock .hide-on-mobile:not(.active) {
        display: none !important;
    }
    .yre-floating-form-btn.active {
        display: block !important;
        position: fixed;
        z-index: 9999;
    }
    .behavior-dock.yre-floating-elements {
        bottom: 90px;
    }
    .yre-mobile-dock {
        display: flex;
    }
    .yre-floating-popup {
        width: calc(100vw - 40px);
        left: 20px !important;
        right: 20px !important;
        bottom: 90px;
    }
}


/* SCROLL TO TOP (Legacy check - already handled below) */


/* ============================================
   SCROLL TO TOP
   ============================================ */

.yre-scroll-top {
    position: fixed;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 998;
    border: none;
    box-shadow: var(--shadow-md);
}

.yre-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.yre-scroll-top:hover {
    background: var(--color-secondary);
    transform: translateY(-5px);
}

.yre-scroll-top svg {
    width: 24px;
    height: 24px;
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .yre-features-grid,
    .yre-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .yre-footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .yre-projects-grid,
    .yre-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .yre-hero-content {
        flex-direction: column;
        text-align: center;
    }
    .yre-hero-form-wrapper {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .yre-projects-grid,
    .yre-testimonials-grid,
    .yre-features-grid,
    .yre-stats-grid {
        grid-template-columns: 1fr !important;
    }
    .yre-footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .yre-footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    .yre-footer-social {
        justify-content: center;
    }
    .yre-footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    .yre-nav {
        display: none;
    }
    .yre-mobile-menu-btn {
        display: flex;
    }
    .section {
        padding: 60px 0;
    }
    .yre-hero {
        min-height: auto;
        padding: 120px 0 80px;
    }
    .yre-hero-title {
        font-size: 2rem;
    }
    .yre-cta-title {
        font-size: 1.75rem;
    }
}


/* ============================================
   UTILITY CLASSES
   ============================================ */

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

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

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

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.my-0 {
    margin-top: 0;
    margin-bottom: 0;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Project Card Image & Avatar Refinement */

.project-card,
.project-card-inner,
.project-image-link {
    padding: 0 !important;
    margin: 0 !important;
}

.project-image {
    width: 100% !important;
    height: 320px !important;
    object-fit: cover !important;
}

.yre-testimonial-avatar img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.yre-feature-icon img,
.yre-feature-icon svg {
    object-fit: contain !important;
}


/* ===== Hero Video Performance Optimization ===== */


/* Video Poster (background image while video loads) */

.yre-video-poster {
    position: absolute;
    inset: 0;
    z-index: -2;
    transition: opacity 0.5s ease;
}


/* Hide poster when video is playing */

.yre-hero-video.playing~.yre-video-poster {
    opacity: 0;
}


/* ===== Floating Form Enhancements ===== */

.yre-floating-popup-header h4 {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.popup-title-icon {
    margin-inline-end: 8px;
}


/* Single project specs: see assets/css/project-specs.css (enqueued on singular projects). */


/* Google reCAPTCHA v3 floating badge — remove from layout (fixed bottom-right).
   Per Google: if the badge is hidden, show reCAPTCHA text near affected forms, e.g.
   “This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.” */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    position: fixed !important;
    inset-inline-end: -9999px !important;
    bottom: 0 !important;
}

/* yre-canvas-footer-flow-fix */
.yre-standalone-body .yre-premium-footer,
.yre-standalone-body footer.yre-premium-footer {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 1 !important;
    width: 100%;
    background: var(--footer-bg, #0D1520) !important;
    color: var(--footer-text, #ffffff);
}
.yre-standalone-body .yre-master-canvas {
    position: relative;
    z-index: 1;
    margin-bottom: 0 !important;
    min-height: 0;
    background-color: #ffffff;
}
.yre-standalone-body .yre-standalone-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 200 !important;
}
.yre-standalone-body.header-transparent.is-homepage .yre-standalone-header {
    position: fixed !important;
}
.yre-standalone-body .yre-topbar {
    position: relative;
    z-index: 201;
}
/* yre-footer-flow-bust: 3.0.2-20261006 */

/* yre-logo-size-fix: 2026-10-06 */
.yre-logo img,
.yre-logo-img,
.yre-mobile-logo,
.yre-logo-link img,
.yre-header-brand img,
.yre-standalone-header .yre-logo-img,
.yre-mobile-menu-header img {
    width: var(--logo-width, 180px) !important;
    max-width: min(180px, 42vw) !important;
    height: auto !important;
    max-height: 72px !important;
    object-fit: contain;
}
.yre-mobile-logo {
    max-height: 48px !important;
    max-width: 160px !important;
}
.yre-standalone-header .yre-header-container {
    min-height: 0 !important;
    align-items: center;
}