/* Fonts - Inter for that clean Apple look */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --color-bg: #FFFFFF;
    --color-bg-alt: #FBFBFD;
    --color-bg-dark: #161617;
    /* Apple Dark */
    --color-text-main: #1D1D1F;
    --color-text-secondary: #86868B;
    --color-text-light: #A1A1A6;
    --color-primary: #002B5B;
    /* Brand Navy */
    --color-accent: #D4AF37;
    /* Gold Architectural Accent */
    --color-white: #FFFFFF;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-s: 8px;
    --radius-m: 12px;
    --radius-l: 20px;

    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.08);

    --nav-height: 65px;
    --max-width: 1600px;
    /* Wider standard container */
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-main);
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 0.5em;
    color: var(--color-text-main);
}

h1 {
    font-size: 56px;
    line-height: 1.07143;
}

h2 {
    font-size: 48px;
    line-height: 1.1;
}

h3 {
    font-size: 32px;
    line-height: 1.125;
}

p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 19px;
    /* Slightly larger readable text */
    line-height: 1.5;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--color-white);
}

.text-accent {
    color: var(--color-accent);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.section-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark p {
    color: var(--color-white);
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 980px;
    /* Pill shape */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #003a7a;
    box-shadow: 0 4px 12px rgba(0, 43, 91, 0.3);
}

.btn-outline {
    border: 1px solid var(--color-text-main);
    color: var(--color-text-main);
    background: transparent;
}

.btn-arrow::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.2s;
}

.btn-arrow:hover::after {
    transform: translateX(4px);
}

/* Header - Glassmorphism */
/* Header - Luxury Sticky (scoped: do not use bare `header` — content areas may use <header> too) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(251, 251, 253, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header.scrolled {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Global Luxe Hero (Consistent across pages) */
.luxe-hero {
    padding: 160px 0 100px;
    background: var(--color-bg-alt);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.luxe-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.luxe-hero h1 {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.luxe-gold-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #D4AF37 0%, #f1d592 50%, #b8860b 100%);
    margin: 0 auto 30px;
    border-radius: 10px;
}

.site-header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 600;
    font-size: 18px;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.8);
    position: relative;
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--color-primary);
}

.portal-link {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-primary) !important;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600 !important;
    margin-left: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.portal-link:hover {
    background: var(--color-primary);
    color: #fff !important;
}

.portal-link i {
    font-size: 12px;
}

/* Animations Reveal */
.reveal,
.fade-up,
.animate-up {
    opacity: 1;
    /* Safety default */
    transform: translateY(0);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.js-reveal,
.fade-up.js-reveal,
.animate-up.js-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.js-reveal.active,
.reveal.js-reveal.visible,
.fade-up.js-reveal.active,
.fade-up.js-reveal.visible,
.animate-up.js-reveal.active,
.animate-up.js-reveal.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: var(--nav-height);
    background-color: var(--color-bg-dark);
    /* Fallback */
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transform: scale(1.05);
    /* Zoom in for parallax */
    transition: transform 10s ease;
}

.hero:hover .hero-bg-img {
    transform: scale(1);
}

.hero-content {
    position: relative;
    /* CRITICAL FIX for z-index */
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 72px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A1A6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-content p {
    color: #86868b;
    font-size: 24px;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Cards - Apple Style Layouts */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.card {
    background: var(--color-white);
    border-radius: var(--radius-l);
    overflow: hidden;
    padding: 40px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.card:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-hover);
}

.card-img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    border-radius: var(--radius-m) var(--radius-m) 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.card:hover .card-img {
    transform: translateX(-50%) translateY(-10px);
}

.card-image-bg {
    background: #000;
    color: white;
}

.card-image-bg .card-img-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.7;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s;
}

.card-image-bg:hover .card-img-full {
    transform: scale(1.05);
    opacity: 0.8;
}

.card-image-bg .card-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-image-bg h3,
.card-image-bg p {
    color: white;
}

.card-full {
    grid-column: span 2;
    background: var(--color-bg-dark);
    color: white;
    flex-direction: row;
    align-items: center;
    padding: 0;
    /* Let content and image handle padding */
}

.card-full .card-content {
    padding: 60px;
    flex: 1;
}

.card-full .card-img-side {
    width: 50%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    /* Sharp cut for side image */
}

.card-image-bg .card-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-m);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px;
    align-self: flex-start;
}

.card-image-bg h3 {
    font-size: 28px;
    margin-bottom: 8px;
}

.card-image-bg p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 0;
}

.card-content {
    z-index: 2;
}

.card-eyebrow {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 12px;
    display: block;
}

.site-footer {
    background: #ffffff;
    color: var(--color-text-main);
    padding: 100px 0 40px;
    font-family: 'Tajawal', sans-serif;
    border-top: 1px solid #f0f0f2;
    position: relative;
    overflow: hidden;
}

/* Subtle Watermark Logo in background */
.site-footer::after {
    content: "MS & GTF IMMO";
    position: absolute;
    bottom: -50px;
    right: -20px;
    font-size: 20vw;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.02);
    z-index: 0;
    pointer-events: none;
    line-height: 1;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 80px;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.footer-brand .footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 24px;
    display: block;
    letter-spacing: -1px;
}

.footer-brand .footer-logo span {
    color: var(--color-primary);
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.8;
    max-width: 380px;
}

.footer-col h4 {
    color: #1a1a1b;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--color-primary);
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.footer-contact li {
    color: var(--color-text-secondary);
    font-size: 15px;
    margin-bottom: 20px !important;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.footer-contact i {
    color: var(--color-primary);
    font-size: 20px;
    margin-top: 2px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    border: 1px solid #f0f0f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-main);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 18px;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-8px) rotate(360deg);
    color: #fff !important;
}

.footer-bottom {
    border-top: 1px solid #f0f0f2;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8e8e93;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.signature-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    padding: 2px 5px;
    border-radius: 4px;
}

.signature-link:hover {
    background: rgba(0, 43, 91, 0.05);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.footer-copyright p {
    transition: all 0.3s ease;
}

.footer-copyright p:hover {
    color: var(--color-text-main);
}

.footer-legal a {
    color: #8e8e93;
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--color-text-main);
}

/* Mobile Menu Styling */
.mobile-menu-btn {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 10001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-main);
    position: absolute;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 9px;
    width: 70%;
    right: 0;
}

.mobile-menu-btn span:nth-child(3) {
    top: 18px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(20px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- PREMIUM MOBILE MENU --- */
.mobile-menu-container {
    position: absolute;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: white;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-container {
    right: 0;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 40px 40px;
    overflow-y: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.mobile-menu-header .footer-logo {
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: var(--color-text-main);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-bottom: auto;
}

.mobile-nav-links a {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text-main);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu-overlay.active .mobile-nav-links a {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered entry animation */
.mobile-nav-links a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav-links a:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-nav-links a:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-nav-links a:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-nav-links a:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-nav-links a.active {
    color: var(--color-primary);
    padding-left: 20px;
    position: relative;
}

.mobile-nav-links a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.mobile-lang-box {
    display: flex;
    background: #f1f1f3;
    padding: 4px;
    border-radius: 100px;
    /* Perfect pill shape */
    max-width: 240px;
    margin: 0 auto;
}

.mobile-lang-box a {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    text-decoration: none;
    color: #8e8e93;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-lang-box a.active {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.mobile-menu-footer {
    padding-top: 40px;
    border-top: 1px solid #f0f0f2;
    margin-top: 40px;
    text-align: center;
    /* Center footer content */
}

.mobile-contact-info a {
    font-size: 18px;
    transition: color 0.3s;
}

.mobile-contact-info a:hover {
    color: var(--color-primary);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {

    /* Layout */
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 60px 0;
    }

    /* Typography */
    h1 {
        font-size: 40px;
        line-height: 1.1;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }

    p {
        font-size: 17px;
    }

    /* Navigation */
    .nav-links,
    .mobile-hidden {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Grids to Stacks */
    .grid-2,
    .grid-3,
    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .card-full {
        grid-column: span 1;
        flex-direction: column !important;
        min-height: auto;
    }

    .card-full .card-img-side {
        width: 100%;
        height: 300px;
    }

    .card {
        min-height: 400px;
        padding: 30px;
    }

    /* Hero Adjustments */
    .hero-content h1 {
        font-size: 42px;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    /* --- Footer Mobile --- */
    .footer-main {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 40px;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .footer-legal a {
        margin: 0 10px;
    }


}

@media (max-width: 480px) {
    h1 {
        font-size: 32px;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .hero-content {
        padding: 0 10px;
    }
}

/* ARCHITECTURAL IRIS REVEAL LOADER */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#loader-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-out;
}

/* 1. The Image begins hidden behind a clip-path */
.cinematic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url('../images/animation-image.avif');
    background-size: cover;
    background-position: center;

    /* THE EXCEPTIONAL REVEAL ANIMATION */
    /* Starts as a small dot, expands to full screen */
    clip-path: circle(0% at 50% 50%);
    animation: irisReveal 4s cubic-bezier(0.86, 0, 0.07, 1) forwards;
}

@keyframes irisReveal {
    0% {
        clip-path: circle(0% at 50% 50%);
        transform: scale(1.2);
    }

    30% {
        clip-path: circle(15% at 50% 50%);
        transform: scale(1.1);
    }

    /* Pause to show "Vision" */
    100% {
        clip-path: circle(150% at 50% 50%);
        transform: scale(1.0);
    }

    /* Expand to "Reality" */
}

/* Overlay to darken image slightly once revealed */
.cinematic-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInOverlay 4s forwards;
}

@keyframes fadeInOverlay {

    0%,
    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* 2. THE GOLDEN BORDER (Draws around the reveal) */
.iris-border {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30vh;
    height: 30vh;
    /* Matches the 15% circle roughly */
    border: 2px solid #D4AF37;
    border-radius: 50%;
    opacity: 0;
    z-index: 5;
    animation: borderExpand 4s cubic-bezier(0.86, 0, 0.07, 1) forwards;
}

@keyframes borderExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        border-width: 50px;
    }

    30% {
        width: 30vh;
        height: 30vh;
        opacity: 1;
        border-width: 2px;
    }

    50% {
        opacity: 1;
    }

    100% {
        width: 250vw;
        height: 250vw;
        opacity: 0;
        border-width: 0px;
    }
}

/* 3. CENTER CONTENT (Appears AFTER reveal) */
.loader-content-exceptional {
    position: absolute;
    /* Force overlay position */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;

    /* Flexbox Center Locking */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;

    opacity: 0;
    animation: contentFadeIn 1.5s ease-out forwards 2.5s;
}

/* Adjust animation to keep centering transform */
@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.loader-logo {
    height: 80px;
    width: auto;
    margin: 0 auto 20px auto;
    /* Force Center Margin */
    display: block;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.loader-big-title {
    font-family: 'Oswald', sans-serif;
    font-size: 40px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 15px;
    margin-bottom: 10px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
}

.loader-big-title span {
    color: #D4AF37;
    font-weight: 700;
}

.loader-subtitle-exc {
    font-size: 12px;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    padding-top: 20px;
    border-top: 1px solid #D4AF37;
    display: inline-block;
}

/* UI Stats */
.loader-real-ui {
    width: 400px;
    z-index: 200;
}

.tech-stats {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-left: 4px solid var(--color-accent);
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 12px;
    color: #0ff;
}

.tech-row {
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.dynamic-val {
    color: #fff;
}

/* Protection Modal Styles - Optimized for Performance */
.protection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-out;
    /* Faster, simpler transition */
}

.protection-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Darker overlay, no blur for performance */
}

.modal-card {
    position: relative;
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(10px);
    /* Simpler translation */
    transition: transform 0.2s ease-out;
}

.protection-modal.active .modal-card {
    transform: translateY(0);
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: #fef9e7;
    color: #ffc107;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.protection-modal h3 {
    color: #002B5B;
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.protection-modal p {
    font-size: 15px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* --- PREMIUM ANIMATIONS & ENHANCEMENTS --- */
:root {
    --transition-premium: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Fluid Entrance Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-premium);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Card Hover Mastery */
.service-card {
    transition: var(--transition-premium);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 43, 91, 0.12);
    border-color: var(--color-accent);
}

.service-card-image {
    overflow: hidden;
}

.service-card-image img {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-image img {
    transform: scale(1.15) rotate(1deg);
}

/* Glassmorphism Tags */
.hero-badge {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    transition: var(--transition-premium);
}

.hero-badge:hover {
    background: #fff;
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

/* Premium Button Effect */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, #001a38 100%);
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent) 0%, #b8860b 100%);
    transition: opacity 0.4s ease;
    z-index: -1;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Stat Number Pulse */
.stat-number {
    background: linear-gradient(to bottom, var(--color-accent), #b8860b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-premium);
    display: inline-block;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

/* Text Shimmer for Titles */
.text-accent-shimmer {
    background: linear-gradient(90deg, #D4AF37, #FFFFFF, #D4AF37);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

/* Responsive Grid Smoothness */
.responsive-services-grid {
    perspective: 1000px;
}

/* --- Client project tracking (project-tracking.php) --- */
.tracking-page-section {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(0, 43, 91, 0.08), transparent 35%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 28%, #f7f9fc 100%);
    padding-top: 148px;
    padding-bottom: 110px;
}

.tracking-page-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 18%, rgba(255,255,255,0.35) 100%);
    pointer-events: none;
}

.tracking-print-area {
    position: relative;
    z-index: 1;
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
}

.tracking-hero-v2 {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
    padding: 42px;
    border-radius: 34px;
    border: 1px solid rgba(255,255,255,0.75);
    box-shadow:
        0 30px 80px rgba(0, 43, 91, 0.10),
        inset 0 1px 0 rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.tracking-hero-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(212, 175, 55, 0.18), transparent 26%),
        radial-gradient(circle at 88% 16%, rgba(0, 43, 91, 0.10), transparent 24%);
    pointer-events: none;
}

.tracking-hero-top,
.tracking-hero-kicker,
.tracking-badge,
.tracking-title,
.tracking-client,
.tracking-status-row,
.tracking-stats,
.tracking-progress-block {
    position: relative;
    z-index: 1;
}

.tracking-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.tracking-link-muted {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(0, 43, 91, 0.08);
    color: var(--color-text-secondary, #64748b);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tracking-link-muted::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
}

.tracking-logout::before {
    content: "\f2f5";
}

.tracking-change::before {
    content: "\f362";
}

.tracking-link-muted:hover {
    color: var(--color-primary, #002b5b);
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateY(-1px);
}

.tracking-logout:hover {
    color: #c0392b;
}

.tracking-hero-kicker {
    margin: 0 0 10px;
    color: var(--color-accent, #d4af37);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.tracking-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary, #002b5b), #0b3b75);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 16px 32px rgba(0, 43, 91, 0.18);
}

.tracking-badge::before {
    content: '\f3c5';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--color-accent, #d4af37);
}

.tracking-title {
    margin: 18px 0 12px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--color-text-main, #0f172a);
    max-width: 900px;
}

.tracking-client {
    margin: 0 0 22px;
    color: var(--color-text-secondary, #64748b);
    font-size: clamp(15px, 1.7vw, 18px);
    font-weight: 500;
}

.tracking-status-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 30px;
}

.tracking-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}

.tracking-pill-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px rgba(255,255,255,0.42);
}

.tracking-pill-active {
    background: rgba(46, 204, 113, 0.14);
    border-color: rgba(46, 204, 113, 0.24);
    color: #1e8449;
}

.tracking-pill-on_hold {
    background: rgba(241, 196, 15, 0.18);
    border-color: rgba(241, 196, 15, 0.28);
    color: #9a7b0a;
}

.tracking-pill-completed {
    background: rgba(52, 152, 219, 0.14);
    border-color: rgba(52, 152, 219, 0.24);
    color: #1f618d;
}

.tracking-pill-cancelled {
    background: rgba(231, 76, 60, 0.13);
    border-color: rgba(231, 76, 60, 0.22);
    color: #c0392b;
}

.tracking-pill-planning {
    background: rgba(155, 89, 182, 0.12);
    border-color: rgba(155, 89, 182, 0.20);
    color: #7d3c98;
}

.tracking-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.tracking-stat-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 136px;
    padding: 22px 20px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(0, 43, 91, 0.07);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    text-align: left;
}

.tracking-stat-card::after {
    content: '';
    position: absolute;
    inset: auto -35px -35px auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0));
}

.tracking-stat-card i {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--color-primary, #002b5b);
    background: rgba(0, 43, 91, 0.06);
    border: 1px solid rgba(0, 43, 91, 0.08);
    margin-bottom: 8px;
}

.tracking-stat-val {
    display: block;
    font-size: clamp(1rem, 1.5vw, 1.08rem);
    font-weight: 800;
    line-height: 1.35;
    color: var(--color-text-main, #0f172a);
    word-break: break-word;
}

.tracking-stat-label {
    display: block;
    margin-top: auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-secondary, #64748b);
}

.tracking-progress-block {
    max-width: 700px;
    padding: 20px 22px;
    border-radius: 22px;
    background: rgba(255,255,255,0.74);
    border: 1px solid rgba(0, 43, 91, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.tracking-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--color-text-secondary, #64748b);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tracking-progress-bar {
    height: 12px;
    border-radius: 999px;
    background: rgba(0, 43, 91, 0.08);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
}

.tracking-progress-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0b3b75 0%, #174f8d 36%, #d4af37 100%);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.22);
    transition: width 0.45s ease;
}

.tracking-notes-card,
.tracking-toolbar,
.tracking-featured-inner,
.tracking-empty,
.timeline-panel {
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(0, 43, 91, 0.07);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
}

.tracking-notes-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 24px 26px;
    margin-bottom: 28px;
}

.tracking-notes-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--color-accent, #d4af37), var(--color-primary, #002b5b));
}

.tracking-notes-card h2 {
    margin: 0 0 14px;
    font-size: 17px;
    color: var(--color-primary, #002b5b);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tracking-notes-body {
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-text-main, #334155);
}

.tracking-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 24px;
    border-radius: 24px;
}

.tracking-search-wrap {
    flex: 1 1 300px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 18px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(0, 43, 91, 0.08);
    border-radius: 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tracking-search-wrap:focus-within {
    border-color: rgba(212, 175, 55, 0.42);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
    transform: translateY(-1px);
}

.tracking-search-wrap i {
    color: var(--color-text-secondary, #94a3b8);
    font-size: 15px;
}

.tracking-search {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 14px;
    outline: none;
    color: var(--color-text-main, #0f172a);
}

.tracking-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.tracking-select-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--color-text-secondary, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tracking-select {
    min-width: 150px;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 43, 91, 0.10);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-main, #0f172a);
    cursor: pointer;
    outline: none;
}

.tracking-print-btn {
    min-height: 48px;
    padding: 0 18px !important;
    font-size: 13px !important;
}

.tracking-results-meta {
    width: 100%;
    margin: 0;
    color: var(--color-text-secondary, #64748b);
    font-size: 13px;
    font-weight: 600;
}

.tracking-featured {
    margin-bottom: 34px;
}

.tracking-featured-inner {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    overflow: hidden;
    border-radius: 28px;
}

.tracking-featured-img {
    min-height: 260px;
    background: linear-gradient(135deg, #e7edf5, #f6f8fb);
}

.tracking-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tracking-featured-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    color: rgba(0, 43, 91, 0.14);
}

.tracking-featured-text {
    padding: 30px 34px;
    text-align: start;
}

.tracking-featured-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--color-accent, #d4af37);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tracking-featured-label::before {
    content: '';
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.tracking-featured-text time {
    display: block;
    margin-bottom: 12px;
    color: var(--color-primary, #002b5b);
    font-size: 14px;
    font-weight: 800;
}

.tracking-featured-text p {
    margin: 0 0 18px;
    color: var(--color-text-main, #334155);
    font-size: 16px;
    line-height: 1.72;
}

.tracking-timeline-v2 {
    position: relative;
    padding-left: 40px;
}

.tracking-timeline-v2::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 98px;
    width: 2px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.55), rgba(0, 43, 91, 0.10));
    border-radius: 2px;
}

.timeline-row {
    position: relative;
    display: grid;
    grid-template-columns: 126px 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.timeline-axis {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
}

.timeline-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent, #d4af37), #f0d784);
    border: 4px solid #fff;
    box-shadow:
        0 0 0 5px rgba(212, 175, 55, 0.15),
        0 8px 18px rgba(212, 175, 55, 0.24);
    z-index: 1;
}

.timeline-datebox {
    margin-top: 16px;
    min-width: 92px;
    padding: 14px 10px 12px;
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(180deg, var(--color-primary, #002b5b) 0%, #0c3a71 100%);
    color: #fff;
    box-shadow: 0 16px 30px rgba(0, 43, 91, 0.18);
}

.timeline-day {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.timeline-my {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 700;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.timeline-panel {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    border-radius: 28px;
}

.timeline-panel-media {
    min-height: 220px;
    background: linear-gradient(135deg, #eef3f8, #f8fafc);
}

.timeline-panel-media img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.timeline-panel-media img:hover {
    transform: scale(1.05);
    filter: saturate(1.05);
}

.timeline-no-img {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 43, 91, 0.14);
    font-size: 40px;
}

.timeline-panel-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 30px 28px;
}

.timeline-panel-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--color-primary, #002b5b);
    font-size: 13px;
    font-weight: 800;
}

.timeline-panel-date::before {
    content: '\f133';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--color-accent, #d4af37);
}

.timeline-panel-text {
    color: var(--color-text-main, #334155);
    font-size: 15px;
    line-height: 1.78;
}

.timeline-zoom {
    align-self: flex-start;
    margin-top: 16px;
    padding: 0;
    border: none;
    background: none;
    color: var(--color-accent, #d4af37);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.timeline-zoom:hover {
    color: var(--color-primary, #002b5b);
}

.tracking-empty {
    text-align: center;
    padding: 64px 26px;
    border-radius: 28px;
    border: 1px dashed rgba(0, 43, 91, 0.14);
}

.tracking-empty-icon {
    margin-bottom: 18px;
    color: rgba(0, 43, 91, 0.13);
    font-size: 60px;
}

.tracking-empty-title {
    margin: 0 0 10px;
    color: var(--color-text-main, #334155);
    font-size: 18px;
    font-weight: 800;
}

.tracking-empty-hint {
    max-width: 520px;
    margin: 0 auto;
    color: var(--color-text-secondary, #64748b);
    font-size: 15px;
    line-height: 1.7;
}

.tracking-empty-soft {
    padding: 36px 24px;
}

.tracking-no-match-msg {
    margin-top: 18px;
    color: var(--color-text-secondary, #64748b);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.tracking-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 12, 22, 0.90);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: zoom-out;
}

.tracking-lightbox[hidden] {
    display: none !important;
}

.tracking-lightbox img {
    max-width: min(94vw, 1240px);
    max-height: 90vh;
    border-radius: 18px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
    cursor: default;
}

.tracking-lightbox-close {
    position: absolute;
    top: 22px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tracking-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: scale(1.04);
}

[dir="rtl"] .tracking-hero-top {
    flex-direction: row-reverse;
}

[dir="rtl"] .tracking-status-row {
    justify-content: flex-end;
}

[dir="rtl"] .tracking-stats,
[dir="rtl"] .tracking-progress-block,
[dir="rtl"] .tracking-featured-text,
[dir="rtl"] .timeline-panel-body,
[dir="rtl"] .tracking-results-meta {
    text-align: right;
}

[dir="rtl"] .tracking-timeline-v2 {
    padding-left: 0;
    padding-right: 40px;
}

[dir="rtl"] .tracking-timeline-v2::before {
    left: auto;
    right: 98px;
}

[dir="rtl"] .tracking-featured-inner {
    direction: rtl;
}

@media (max-width: 1080px) {
    .tracking-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tracking-featured-inner,
    .timeline-panel {
        grid-template-columns: 1fr;
    }

    .timeline-panel-media,
    .timeline-panel-media img,
    .timeline-no-img {
        min-height: 260px;
    }
}

@media (max-width: 760px) {
    .tracking-page-section {
        padding-top: 118px;
        padding-bottom: 76px;
    }

    .tracking-hero-v2 {
        padding: 28px 20px;
        border-radius: 24px;
    }

    .tracking-title {
        font-size: clamp(1.9rem, 7vw, 2.6rem);
    }

    .tracking-stats {
        grid-template-columns: 1fr;
    }

    .tracking-toolbar {
        padding: 16px;
        border-radius: 20px;
    }

    .tracking-search-wrap,
    .tracking-toolbar-actions,
    .tracking-select-wrap,
    .tracking-select {
        width: 100%;
    }

    .tracking-select {
        min-width: 0;
    }

    .tracking-featured-text,
    .timeline-panel-body {
        padding: 22px 20px;
    }

    .tracking-timeline-v2 {
        padding-left: 0;
    }

    .tracking-timeline-v2::before {
        left: 18px;
    }

    [dir="rtl"] .tracking-timeline-v2 {
        padding-right: 0;
    }

    [dir="rtl"] .tracking-timeline-v2::before {
        left: auto;
        right: 18px;
    }

    .timeline-row {
        grid-template-columns: 60px 1fr;
        gap: 14px;
        margin-bottom: 20px;
    }

    .timeline-datebox {
        min-width: 52px;
        padding: 10px 4px;
        border-radius: 14px;
    }

    .timeline-day {
        font-size: 16px;
    }

    .timeline-my {
        font-size: 8px;
    }

    .timeline-panel {
        border-radius: 22px;
    }

    .timeline-panel-media,
    .timeline-panel-media img,
    .timeline-no-img {
        min-height: 180px;
    }
}

@media print {
    .no-print,
    .site-header,
    .mobile-menu-btn,
    .whatsapp-float,
    #scroll-progress,
    .site-footer,
    footer {
        display: none !important;
    }

    .tracking-page-section {
        padding-top: 24px !important;
        background: #fff !important;
    }

    .tracking-print-area {
        max-width: 100%;
    }

    .tracking-hero-v2,
    .tracking-notes-card,
    .tracking-toolbar,
    .tracking-featured-inner,
    .timeline-panel {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        background: #fff !important;
    }
}