/* ============================================
   PropertyDesk Design System
   Pakistan/Sindh-Focused Real Estate Platform
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    /* Primary Palette — Sindh-Inspired */
    --color-primary: #0d7377;
    --color-primary-light: #14a3a8;
    --color-primary-dark: #095456;
    --color-primary-50: #e6f7f7;
    --color-primary-100: #ccefef;
    --color-primary-200: #99dfdf;
    --color-primary-500: #0d7377;
    --color-primary-900: #042d2f;

    /* Accent — Sindhi Gold */
    --color-accent: #d4a843;
    --color-accent-light: #e8c76f;
    --color-accent-dark: #b08a2e;
    --color-accent-50: #fdf8eb;

    /* Secondary — Emerald (Growth/Success) */
    --color-secondary: #10b981;
    --color-secondary-light: #34d399;
    --color-secondary-dark: #059669;

    /* Sindhi Red — Cultural */
    --color-sindhi-red: #c0392b;
    --color-sindhi-red-light: #e74c3c;

    /* Neutrals */
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-500: #64748b;
    --color-slate-400: #94a3b8;
    --color-slate-300: #cbd5e1;
    --color-slate-200: #e2e8f0;
    --color-slate-100: #f1f5f9;
    --color-slate-50: #f8fafc;

    /* Semantic */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-urdu: 'Noto Nastaliq Urdu', serif;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-2xl: 2.5rem;
    --radius-3xl: 3rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --shadow-primary: 0 10px 30px -5px rgba(13,115,119,0.3);
    --shadow-accent: 0 10px 30px -5px rgba(212,168,67,0.3);
    --shadow-glass: 0 8px 32px rgba(0,0,0,0.08);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 500ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Dark Mode Variables --- */
[data-theme="dark"] {
    --color-slate-900: #f8fafc;
    --color-slate-800: #f1f5f9;
    --color-slate-700: #e2e8f0;
    --color-slate-600: #cbd5e1;
    --color-slate-500: #94a3b8;
    --color-slate-400: #64748b;
    --color-slate-300: #475569;
    --color-slate-200: #334155;
    --color-slate-100: #1e293b;
    --color-slate-50: #0f172a;
}

/* ============================================
   REUSABLE COMPONENT CLASSES
   ============================================ */

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    box-shadow: 0 14px 35px -5px rgba(13,115,119,0.4);
}

.btn-accent {
    background: var(--color-accent);
    color: white;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    background: var(--color-accent-light);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: calc(1rem - 2px) calc(2rem - 2px);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--color-slate-600);
    padding: 1rem 2rem;
}

.btn-ghost:hover {
    background: var(--color-slate-100);
    color: var(--color-primary);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-2xl);
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: var(--radius-md);
}

/* --- Cards --- */
.card {
    background: white;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-slate-100);
    overflow: hidden;
    transition: all var(--transition-slow);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.card-property {
    background: white;
    border-radius: var(--radius-3xl);
    border: 1px solid var(--color-slate-100);
    overflow: hidden;
    transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card-property:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-8px);
}

.card-property:hover .card-property__image img {
    transform: scale(1.1);
}

.card-property__image {
    position: relative;
    overflow: hidden;
    height: 16rem;
}

.card-property__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card-property__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
}

.card-property__price {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--color-primary);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
}

.card-property__body {
    padding: 1.5rem 2rem 2rem;
}

/* --- Glass Panel --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-glass);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Form Inputs --- */
.form-input {
    width: 100%;
    background: var(--color-slate-50);
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-xl);
    padding: 1rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-slate-800);
    transition: all var(--transition-base);
    outline: none;
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.15);
}

.form-input::placeholder {
    color: var(--color-slate-400);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-slate-700);
    margin-bottom: 0.5rem;
}

/* --- Badges & Tags --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.badge-primary { background: var(--color-primary-50); color: var(--color-primary); }
.badge-success { background: #ecfdf5; color: var(--color-success); }
.badge-warning { background: #fffbeb; color: var(--color-warning); }
.badge-danger { background: #fef2f2; color: var(--color-danger); }
.badge-accent { background: var(--color-accent-50); color: var(--color-accent-dark); }

/* --- Section Headers --- */
.section-label {
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.8125rem;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-slate-900);
    line-height: 1.15;
}

.section-title span {
    color: var(--color-primary);
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #25D366;
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-base);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 1.75rem;
    height: 1.75rem;
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    top: 6rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-xl);
    animation: toastSlideIn 400ms var(--transition-spring), toastFadeOut 400ms 3600ms ease forwards;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 420px;
}

.toast-success { background: #ecfdf5; color: #065f46; border-left: 4px solid var(--color-success); }
.toast-error { background: #fef2f2; color: #991b1b; border-left: 4px solid var(--color-danger); }
.toast-info { background: var(--color-primary-50); color: var(--color-primary-dark); border-left: 4px solid var(--color-primary); }
.toast-warning { background: #fffbeb; color: #92400e; border-left: 4px solid var(--color-warning); }

/* --- Skeleton Loading --- */
.skeleton {
    background: linear-gradient(90deg, var(--color-slate-100) 25%, var(--color-slate-200) 50%, var(--color-slate-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* --- Divider --- */
.divider {
    height: 1px;
    background: var(--color-slate-200);
    margin: var(--space-xl) 0;
    border: none;
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13, 115, 119, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(13, 115, 119, 0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastFadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-10px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Animation Utility Classes --- */
.animate-fade-up { animation: fadeUp 600ms ease forwards; }
.animate-fade-in { animation: fadeIn 600ms ease forwards; }
.animate-fade-down { animation: fadeDown 500ms ease forwards; }
.animate-slide-left { animation: slideInLeft 600ms ease forwards; }
.animate-slide-right { animation: slideInRight 600ms ease forwards; }
.animate-scale-in { animation: scaleIn 500ms ease forwards; }
.animate-pulse-glow { animation: pulseGlow 2s infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }

/* Staggered delays for lists */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }

/* Scroll-triggered (hidden by default, shown via JS) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-sindhi-red { color: var(--color-sindhi-red); }
.bg-primary { background-color: var(--color-primary); }
.bg-accent { background-color: var(--color-accent); }

/* Pakistan Price formatting */
.price-tag {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--color-primary);
}

.price-tag-lg {
    font-size: 2rem;
}

/* RTL Support for Urdu */
[dir="rtl"] {
    font-family: var(--font-urdu), sans-serif;
}

[dir="rtl"] .section-title,
[dir="rtl"] .section-label {
    text-align: right;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.875rem;
    }
    
    .toast {
        min-width: auto;
        max-width: calc(100vw - 3rem);
    }
    
    .whatsapp-float {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 3rem;
        height: 3rem;
    }
}

/* ============================================
   PREMIUM REDESIGN — DESIGN SYSTEM v2.0
   ============================================ */

/* --- Premium Gradient Tokens --- */
:root {
    --gradient-primary: linear-gradient(135deg, #0d7377, #14a3a8);
    --gradient-primary-bold: linear-gradient(135deg, #095456, #0d7377, #14a3a8);
    --gradient-accent: linear-gradient(135deg, #d4a843, #e8c76f);
    --gradient-dark: linear-gradient(135deg, #0f172a, #1e293b);
    --gradient-hero: linear-gradient(135deg, #0d7377 0%, #14a3a8 40%, #10b981 100%);
    --gradient-mesh: radial-gradient(ellipse at 20% 50%, rgba(13,115,119,0.12) 0%, transparent 50%),
                     radial-gradient(ellipse at 80% 20%, rgba(212,168,67,0.08) 0%, transparent 50%),
                     radial-gradient(ellipse at 50% 80%, rgba(16,185,129,0.06) 0%, transparent 50%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
    --gradient-glass-dark: linear-gradient(135deg, rgba(30,41,59,0.9), rgba(15,23,42,0.7));
    
    /* Premium Shadows */
    --shadow-glow-primary: 0 0 20px rgba(13,115,119,0.15), 0 0 60px rgba(13,115,119,0.05);
    --shadow-glow-accent: 0 0 20px rgba(212,168,67,0.15), 0 0 60px rgba(212,168,67,0.05);
    --shadow-elevated: 0 20px 60px -15px rgba(0,0,0,0.08), 0 4px 20px -5px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 25px 50px -12px rgba(13,115,119,0.12), 0 12px 30px -15px rgba(0,0,0,0.06);
    --shadow-float: 0 30px 80px -20px rgba(0,0,0,0.1);
    --shadow-inset-glow: inset 0 1px 0 rgba(255,255,255,0.1);
}

/* --- Smooth Page Load Transition --- */
body {
    opacity: 0;
    animation: pageEnter 0.6s ease-out 0.05s forwards;
}

@keyframes pageEnter {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Premium Button Micro-Interactions --- */
.btn, button[type="submit"], a.bg-primary, a.bg-white {
    position: relative;
    overflow: hidden;
}

.btn::after, button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after, button[type="submit"]:active::after {
    width: 300px;
    height: 300px;
}

/* Premium button hover glow */
.btn-primary, a.bg-primary {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover, a.bg-primary:hover {
    box-shadow: 0 10px 40px -8px rgba(13,115,119,0.45), 0 0 0 1px rgba(13,115,119,0.1);
    transform: translateY(-3px);
}

.btn-primary:active, a.bg-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px -5px rgba(13,115,119,0.3);
}

/* --- Premium Input Focus States --- */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
textarea,
select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 4px rgba(13,115,119,0.08), 0 2px 8px rgba(13,115,119,0.06) !important;
    transform: translateY(-1px);
}

/* --- Premium Link Hover --- */
a {
    transition: color 0.25s ease, opacity 0.25s ease;
}

/* --- Gradient Text Utilities --- */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-hero {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Premium Section Headers --- */
.section-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-label::before {
    content: '';
    width: 2rem;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 999px;
    display: inline-block;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* --- Enhanced Glass Panels --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: var(--shadow-glass), var(--shadow-inset-glow);
}

.glass-panel-strong {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px) saturate(2);
    -webkit-backdrop-filter: blur(24px) saturate(2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-elevated);
}

html.dark .glass-panel {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html.dark .glass-panel-strong {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Premium Card Treatments --- */
.card-premium {
    background: white;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(241,245,249,0.8);
    box-shadow: var(--shadow-elevated);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-premium:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
    border-color: rgba(13,115,119,0.1);
}

.card-premium:hover::before {
    opacity: 1;
}

html.dark .card-premium {
    background: rgb(30, 41, 59);
    border-color: rgba(51, 65, 85, 0.5);
}

/* --- Decorative Background Shapes --- */
.bg-mesh {
    background-image: var(--gradient-mesh);
}

.bg-dots {
    background-image: radial-gradient(circle, rgba(13,115,119,0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

.bg-grid {
    background-image: 
        linear-gradient(rgba(13,115,119,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13,115,119,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* --- Floating Decorative Blobs --- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.blob-primary {
    background: rgba(13,115,119,0.12);
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-accent {
    background: rgba(212,168,67,0.08);
    animation: blobFloat 10s ease-in-out infinite reverse;
}

.blob-secondary {
    background: rgba(16,185,129,0.06);
    animation: blobFloat 12s ease-in-out infinite;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 15px) scale(0.95); }
}

/* --- Enhanced Scroll Reveal Variants --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity;
}

.reveal-zoom.revealed {
    opacity: 1;
    transform: scale(1);
}

/* --- Page Section Styles --- */
.page-header {
    position: relative;
    background: var(--gradient-mesh);
    padding: 4rem 0 3rem;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, white, transparent);
    pointer-events: none;
}

html.dark .page-header::after {
    background: linear-gradient(to top, rgb(15, 23, 42), transparent);
}

/* --- Animated Divider --- */
.divider-gradient {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    border: none;
    margin: var(--space-2xl) 0;
    opacity: 0.3;
}

/* --- Premium Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
}

/* --- Animated Skeleton v2 --- */
.skeleton-v2 {
    background: linear-gradient(
        110deg,
        rgba(241,245,249,1) 30%,
        rgba(226,232,240,0.5) 50%,
        rgba(241,245,249,1) 70%
    );
    background-size: 300% 100%;
    animation: shimmerV2 1.8s ease-in-out infinite;
    border-radius: var(--radius-lg);
}

@keyframes shimmerV2 {
    0% { background-position: 300% 50%; }
    100% { background-position: -300% 50%; }
}

/* --- Hover Glow Effect --- */
.hover-glow {
    transition: all 0.4s ease;
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow-primary);
}

.hover-glow-accent:hover {
    box-shadow: var(--shadow-glow-accent);
}

/* --- Animated Gradient Border --- */
.border-gradient {
    position: relative;
    border: none !important;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.border-gradient:hover::before {
    opacity: 1;
}

/* --- Premium Badge Pill --- */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

/* --- Floating Label Style (for future form upgrades) --- */
.float-label {
    position: relative;
}

.float-label label {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: var(--color-slate-400);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 0 0.25rem;
}

.float-label input:focus ~ label,
.float-label input:not(:placeholder-shown) ~ label,
.float-label textarea:focus ~ label,
.float-label textarea:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--color-primary);
    background: white;
}

html.dark .float-label input:focus ~ label,
html.dark .float-label input:not(:placeholder-shown) ~ label {
    background: rgb(30, 41, 59);
}

@keyframes searchSlideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-slide-down {
    animation: searchSlideDown 350ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Glassmorphic Visuals */
.glass-btn {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: all var(--transition-base);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.08);
}

html.dark .glass-btn {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-slate-100);
}

html.dark .glass-btn:hover {
    background: rgba(30, 41, 59, 0.95);
}

.glass-badge-premium {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

html.dark .glass-badge-premium {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Premium Navigation Active Pill */
.nav-pill-active {
    background: var(--color-primary-50);
    color: var(--color-primary) !important;
    border-radius: var(--radius-xl);
}

html.dark .nav-pill-active {
    background: rgba(13, 115, 119, 0.15);
    color: var(--color-primary-light) !important;
}

/* Custom transitions and interactive feedback */
.luxury-card-shadow {
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
}

.luxury-card-shadow:hover {
    box-shadow: 0 30px 60px -15px rgba(13, 115, 119, 0.12), 0 20px 40px -20px rgba(0, 0, 0, 0.04);
}

/* --- Responsive Overrides for Premium --- */
@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0 2rem;
    }
    
    .blob {
        display: none; /* Reduce visual noise on mobile */
    }
}

/* --- Print Styles (hide decorative elements) --- */
@media print {
    .blob, .scroll-progress, .whatsapp-float {
        display: none !important;
    }
    
    body {
        opacity: 1 !important;
        animation: none !important;
    }
}

/* --- Shifting Gradient Animation for CTA/Hero --- */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animate-gradient-shift {
    background-size: 200% 200% !important;
    animation: gradientShift 8s ease infinite !important;
}

/* ============================================
   STEP 7: ANIMATED WAVE DIVIDER & FOOTER POLISH
   ============================================ */

.footer-wave-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
    pointer-events: none;
    height: 60px;
}

.footer-wave-container svg {
    position: relative;
    display: block;
    width: 140%;
    height: 100%;
    left: -20%;
}

.wave-back {
    animation: wave-shift-back 24s ease-in-out infinite;
    transform-origin: center;
}

.wave-middle {
    animation: wave-shift-middle 18s ease-in-out infinite;
    transform-origin: center;
}

.wave-front {
    animation: wave-shift-front 12s ease-in-out infinite;
    transform-origin: center;
}

@keyframes wave-shift-back {
    0%, 100% { transform: translateX(0) scaleY(1); }
    50% { transform: translateX(-8%) scaleY(0.85); }
}

@keyframes wave-shift-middle {
    0%, 100% { transform: translateX(0) scaleY(1); }
    50% { transform: translateX(6%) scaleY(0.9); }
}

@keyframes wave-shift-front {
    0%, 100% { transform: translateX(0) scaleY(1); }
    50% { transform: translateX(-4%) scaleY(0.95); }
}


