/* --- Norus Dental Clinic - Core Premium Design System --- */
:root {
    --primary: #E62E2D; /* Main Red */
    --primary-dark: #A81E1D;
    --primary-light: #FF5C5B;
    --primary-soft: #FFF1F1;
    --primary-glow: rgba(230, 46, 45, 0.2);
    --bg-dark: #fdfdfd;
    --bg-card: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(230, 46, 45, 0.15);
    --text-main: #000000;
    --text-muted: #2d2d2d;
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    direction: rtl;
    line-height: 1.6;
    position: relative;
}

/* --- Animated Background Shapes --- */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #ffffff, var(--primary-soft));
}

.shape {
    position: absolute;
    filter: blur(100px);
    opacity: 0.2;
    border-radius: 50%;
    animation: float 25s infinite alternate ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background: rgba(230, 46, 45, 0.1);
    bottom: -250px;
    left: -150px;
    animation-delay: -7s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: rgba(230, 46, 45, 0.05);
    top: 30%;
    left: 15%;
    animation-delay: -12s;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(50px, 80px) rotate(10deg) scale(1.1); }
    66% { transform: translate(-40px, 40px) rotate(-10deg) scale(0.9); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Common Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(230, 46, 45, 0.1);
}

/* Premium Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 50px;
    filter: drop-shadow(0 0 5px var(--primary-glow));
    transition: var(--transition);
}

header ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

header a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
}

header a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

header a:hover::after, 
header a.active::after {
    width: 100%;
}

header a:hover {
    color: var(--primary);
}

/* Premium Buttons */
.btn {
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: #c92424;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 46, 45, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* Typography Overrides */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    margin-top: 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-main);
    font-weight: 900;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Premium Footer */
footer {
    background: #ffffff;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 5rem;
    text-align: center;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Form Styles Premium */
.premium-input {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-main);
    width: 100%;
    font-family: var(--font-body);
    transition: var(--transition);
}

.premium-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 15px rgba(230, 46, 45, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    header nav { flex-direction: column; gap: 1rem; }
    header ul { gap: 15px; }
    .section-title { font-size: 1.8rem; }
}
