:root {
    --bg-dark: #0a0e17;        
    --card-bg: #131b2e;        
    --accent-gold: #d4af37;    
    --accent-gold-light: #f3e5ab;
    --accent-blue: #78b7d8;
    --accent-green: #7fc7a5;
    --accent-coral: #e6a078;
    --text-main: #f3f4f6;      
    --text-muted: #9ca3af;     
    --border-color: #243049;   
}

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

body {
    font-family: 'Tajawal', 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    opacity: 0;
    animation: page-enter 0.45s ease forwards;
}

body.page-leaving {
    animation: page-leave 0.22s ease forwards;
}

@keyframes page-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes page-leave {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
    body,
    body.page-leaving {
        animation: none;
        opacity: 1;
    }
}

/* SVG Logo Styling */
.aura-logo-svg {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0px 2px 5px rgba(212, 175, 55, 0.4));
}

.aura-logo-image {
    width: 142px;
    height: 58px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0px 2px 5px rgba(212, 175, 55, 0.28));
}

.aura-logo-hero {
    width: 230px;
    height: 145px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: drop-shadow(0px 5px 16px rgba(212, 175, 55, 0.38));
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 12px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

header.scrolled {
    background: rgba(6, 9, 15, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

.logo-text {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

.logo-text span {
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-gold);
}

.reviews-nav-link {
    align-items: center;
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 999px;
    color: var(--accent-gold-light);
    display: inline-flex;
    font-size: 14px;
    gap: 7px;
    line-height: 1.2;
    padding: 5px 11px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.reviews-nav-link i {
    color: var(--accent-gold);
    font-size: 12px;
}

.reviews-nav-link:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--accent-gold);
    color: #fff;
    transform: translateY(-1px);
}

nav a.active {
    color: var(--accent-gold);
    position: relative;
}

nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-gold), #aa820a);
    color: #000;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.language-toggle {
    border: 1px solid var(--accent-gold);
    background: transparent;
    color: var(--accent-gold-light);
    padding: 8px 14px;
    border-radius: 20px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-toggle:hover {
    background: rgba(212, 175, 55, 0.12);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 8% 80px;
    background: radial-gradient(circle at center, #182238 0%, #0a0e17 70%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.hero-content {
    max-width: 850px;
    z-index: 1;
}

.badge {
    display: table;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid #c49b2e;
    color: var(--accent-gold);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin: 0 auto 25px;
}

.hero h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #ffffff;
}

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

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-secondary {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Sections */
section {
    padding: 90px 8%;
}

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

.section-title h2 {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.section-title h1 {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.section-title p {
    color: var(--accent-gold);
    font-size: 15px;
    font-weight: 500;
}

.services-section {
    background: rgba(19, 27, 46, 0.4);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 35px 25px;
    border-radius: 16px;
    min-height: 220px;
    perspective: 1000px;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.card-inner {
    min-height: 150px;
    position: relative;
    transform-style: preserve-3d;
}

.card.is-flipping .card-inner {
    animation: card-full-flip 820ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.card.is-flipping .card-back {
    animation: logo-face-peek 820ms linear both;
}

.card-face {
    backface-visibility: hidden;
    min-height: 150px;
    width: 100%;
}

.card-front {
    position: relative;
    z-index: 1;
}

.card-back {
    align-items: center;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 68%);
    display: flex;
    inset: 0;
    justify-content: center;
    position: absolute;
    transform: rotateY(180deg);
}

.card-back img {
    filter: drop-shadow(0 8px 18px rgba(212, 175, 55, 0.25));
    max-height: 118px;
    max-width: 170px;
    object-fit: contain;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold-light);
    font-size: 22px;
    margin-bottom: 20px;
}

.card:nth-child(2) .card-icon {
    background: rgba(120, 183, 216, 0.12);
    color: var(--accent-blue);
}

.card:nth-child(3) .card-icon {
    background: rgba(127, 199, 165, 0.12);
    color: var(--accent-green);
}

.card h3 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Shared Animista motion across every page. */
.section-title p,
.section-title h1,
.section-title h2,
.contact-info h3,
.contact-info > p {
    opacity: 0;
    transform: translateY(18px);
    will-change: letter-spacing, opacity;
}

.reveal-on-scroll.is-visible {
    animation: tracking-in-contract 900ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.card {
    will-change: transform;
}

@-webkit-keyframes tracking-in-contract {
    0% {
        letter-spacing: 1em;
        opacity: 0;
    }
    40% {
        opacity: 0.6;
    }
    100% {
        letter-spacing: normal;
        opacity: 1;
    }
}

@keyframes tracking-in-contract {
    0% {
        letter-spacing: 1em;
        opacity: 0;
    }
    40% {
        opacity: 0.6;
    }
    100% {
        letter-spacing: normal;
        opacity: 1;
    }
}

@-webkit-keyframes rotate-vert-center {
    0% {
        -webkit-transform: rotateY(0);
        transform: rotateY(0);
    }
    100% {
        -webkit-transform: rotateY(360deg);
        transform: rotateY(360deg);
    }
}

@keyframes rotate-vert-center {
    0% {
        transform: rotateY(0);
    }
    100% {
        transform: rotateY(360deg);
    }
}

@keyframes card-full-flip {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes logo-face-peek {
    0%, 34% { opacity: 0; }
    42%, 55% { opacity: 1; }
    63%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .section-title p,
    .section-title h1,
    .section-title h2,
    .contact-info h3,
    .contact-info > p,
    .reveal-on-scroll,
    .card.is-flipping .card-inner {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px;
}

.contact-border-right {
    border-right: 1px solid var(--border-color);
    padding-right: 30px;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.reviews-section {
    background: linear-gradient(180deg, rgba(19, 27, 46, 0.28), rgba(10, 14, 23, 0.85));
}

.reviews-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 32px;
    align-items: start;
}

.reviews-list {
    display: grid;
    gap: 16px;
}

.review-card,
.review-form {
    background: rgba(19, 27, 46, 0.86);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 26px;
}

.review-card {
    position: relative;
}

.review-card::before {
    content: '“';
    position: absolute;
    top: 14px;
    left: 24px;
    color: rgba(212, 175, 55, 0.35);
    font-family: Georgia, serif;
    font-size: 52px;
    line-height: 1;
}

.review-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.review-card h3 {
    color: #fff;
    font-size: 18px;
}

.review-stars,
.rating-picker label {
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.review-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.reviews-empty {
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    color: var(--text-muted);
    padding: 38px 24px;
    text-align: center;
}

.review-form-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.review-form-heading h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 3px;
}

.review-form-heading p {
    color: var(--text-muted);
    font-size: 14px;
}

.review-form-icon {
    align-items: center;
    background: rgba(120, 183, 216, 0.12);
    border-radius: 12px;
    color: var(--accent-blue);
    display: inline-flex;
    font-size: 20px;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.review-form > label {
    color: var(--text-main);
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 14px 0 7px;
}

.review-trap {
    height: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 0;
}

.review-form input[type="text"],
.review-form textarea {
    background: rgba(10, 14, 23, 0.72);
    border: 1px solid var(--border-color);
    border-radius: 9px;
    color: var(--text-main);
    font: inherit;
    font-size: 15px;
    outline: none;
    padding: 11px 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.review-form textarea {
    min-height: 108px;
    resize: vertical;
}

.review-form input:focus,
.review-form textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.rating-picker {
    direction: ltr;
    display: inline-flex;
    gap: 3px;
}

html[dir="rtl"] .rating-picker {
    direction: rtl;
}

html[dir="ltr"] .rating-picker {
    direction: ltr;
}

.rating-picker input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-picker label {
    cursor: pointer;
    font-size: 25px;
    opacity: 0.35;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.rating-picker label:hover,
.rating-picker label:has(~ input:checked),
.rating-picker input:checked + label {
    opacity: 1;
    transform: translateY(-1px);
}

.review-submit {
    border: 0;
    cursor: pointer;
    gap: 9px;
    margin-top: 20px;
    width: 100%;
}

.review-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.review-status {
    color: var(--accent-green);
    font-size: 14px;
    min-height: 22px;
    padding-top: 10px;
    text-align: center;
}

.peek-rating {
    --pr-active: #f5b400;
    --pr-idle: #52525b;
    --pr-tip: #27272a;
    --pr-tip-text: #f5f5f5;
    --pr-size: 28px;
    --pr-gap: 6px;
    --pr-room: 31px;
    --pr-rise: 320ms;
    --pr-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    color: inherit;
    display: inline-flex;
    font-family: inherit;
}

.peek-rating__row {
    align-items: flex-end;
    display: inline-flex;
    padding-top: var(--pr-room);
    position: relative;
    touch-action: pan-y;
    user-select: none;
}

.peek-rating__star {
    align-items: center;
    background: none;
    border: 0;
    color: inherit;
    display: grid;
    font: inherit;
    height: calc(var(--pr-size) + 8px);
    padding: 0;
    place-items: center;
    width: calc(var(--pr-size) + var(--pr-gap));
}

.peek-rating__star:focus-visible {
    border-radius: 6px;
    outline: 2px solid rgba(245, 180, 0, 0.7);
    outline-offset: 2px;
}

.peek-rating__lift {
    display: block;
    transform: translateY(0) scale(1);
    transform-origin: 50% 100%;
    transition: transform var(--pr-rise) var(--pr-ease-out);
}

.peek-rating__glyph {
    color: var(--pr-idle);
    display: block;
    font-size: var(--pr-size);
    line-height: 1;
    transition: color 160ms ease;
}

.peek-rating__glyph[data-lit='true'] {
    color: var(--pr-active);
}

.peek-rating__tip {
    align-items: center;
    background: var(--pr-tip);
    border-radius: 999px;
    color: var(--pr-tip-text);
    display: inline-flex;
    font-size: calc(var(--pr-size) * 0.38);
    font-weight: 600;
    height: calc(var(--pr-size) * 0.6);
    left: 0;
    opacity: 0;
    padding: 0 calc(var(--pr-size) * 0.3);
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: translate(-50%, 0);
    transition: transform var(--pr-rise) var(--pr-ease-out), opacity 180ms ease;
    white-space: nowrap;
}

.peek-rating__tip[data-show='true'] {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .peek-rating__star { cursor: pointer; }
}

@media (pointer: coarse) {
    .peek-rating__star {
        min-height: 44px;
        min-width: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .peek-rating__lift { transition: none; }
    .peek-rating__tip { transition: opacity 180ms ease; }
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.info-icon {
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold-light);
    font-size: 19px;
}

.info-item:nth-of-type(2) .info-icon {
    color: var(--accent-blue);
    background: rgba(120, 183, 216, 0.12);
}

.info-item:nth-of-type(3) .info-icon {
    color: var(--accent-coral);
    background: rgba(230, 160, 120, 0.12);
}

.info-text span {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

.info-text strong {
    font-size: 15px;
    color: #fff;
}

.contact-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.phone-number {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

body[dir="ltr"] .contact-border-right {
    border-right: none;
    border-left: 1px solid var(--border-color);
    padding-right: 0;
    padding-left: 30px;
}

/* Footer */
footer {
    background: #06090f;
    padding: 40px 8%;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
}

@media (max-width: 768px) {
    header { padding: 15px 5%; }
    nav ul { display: none; }
    .hero h1 { font-size: 34px; }
    .hero p { font-size: 15px; }
    .section-title h1,
    .section-title h2 { font-size: 30px; }
    .contact-info h3 { font-size: 22px; }
    section { padding: 60px 5%; }
    .contact-container { padding: 30px 20px; }
    .reviews-layout { grid-template-columns: 1fr; }
    .review-card,
    .review-form { padding: 22px 18px; }
    .contact-border-right { border-right: none; padding-right: 0; }
    body[dir="ltr"] .contact-border-right { border-left: none; padding-left: 0; }
}