:root {
    --bg-deep: #050505;
    --text-primary: #F0F0F0;
    --text-secondary: #A0A0A0;
    --accent-gold: #D4AF37;
    /* Subtle gold for highlights */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 10, 10, 0.4);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    --blur-strength: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Tajawal', sans-serif;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

/* WebGL Background */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    /* Let clicks pass through */
}

/* Main Container */
.app-container {
    position: relative;
    z-index: 10;
    max-width: 480px;
    /* Mobile focused width */
    margin: 0 auto;
    padding: 40px 20px 250px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Sticky Footer */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    /* Smoother fade: Solid base, gradual fade to transparent at the top */
    background: linear-gradient(to top,
            #050505 20%,
            rgba(5, 5, 5, 0.95) 45%,
            rgba(5, 5, 5, 0.7) 70%,
            rgba(5, 5, 5, 0) 100%);
    padding: 60px 20px 30px 20px;
    display: flex;
    justify-content: center;
    pointer-events: none;

    /* Animation Initial State */
    opacity: 0;
    transform: translateY(20px);
}

.sticky-content {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
    /* Re-enable clicks for content */
}

.sticky-footer .btn-action {
    margin-top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.sticky-footer .social-row {
    margin-top: 5px;
}

.sticky-handle {
    color: var(--text-secondary);
    letter-spacing: 2px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Typography Utilities */
.font-brand {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.15em;
}

.font-serif-ar {
    font-family: 'Amiri', serif;
}

.text-gradient {
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    /* JS Animation start */
    transform: translateY(20px);
}

.brand-logo {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.brand-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    border-radius: 2px;
    /* Sharp, high-fashion edges */
    padding: 24px;
    width: 100%;
    margin-bottom: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s ease,
        background 0.4s ease;
    opacity: 0;
    /* JS Animation start */
    transform: translateY(30px);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(20, 20, 20, 0.5);
    transform: translateY(30px) scale(1.01);
    /* Keep transform offset in mind */
}

/* Specific hover fix for GSAP conflict */
body.loaded .glass-card:hover {
    transform: scale(1.01) !important;
}

/* Section Titles */
.section-title {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    display: inline-block;
    width: 100%;
}

/* Service Item */
.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.service-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.service-name {
    font-size: 1.1rem;
    font-weight: 500;
}

.service-price {
    font-family: 'Cinzel', serif;
    color: var(--text-secondary);
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* Policy Box */
.policy-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
    /* Subtle Gold Border */
    padding: 15px;
    background: rgba(212, 175, 55, 0.02);
}

/* Features List */
.feature-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.feature-icon {
    color: white;
    font-size: 0.8rem;
}

/* Action Button */
.btn-action {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px;
    background: #F0F0F0;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-top: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Tajawal', sans-serif;
}

.btn-action:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Footer */
footer {
    margin-top: 20px;
    text-align: center;
    opacity: 0;
}

.social-link {
    display: inline-block;
    margin: 0 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.social-link:hover {
    color: white;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
}

.loader-line {
    width: 0%;
    height: 1px;
    background: white;
    transition: width 1.5s ease-in-out;
}

/* Social Icons */
.social-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.icon-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.icon-btn:hover {
    background: white;
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}