/* 
   Diabo Control - Premium Luxury Redesign
   Focus: Mobile-First, Premium Aesthetics, Perfect RTL
*/

:root {
    --primary: #064e3b;
    --primary-light: #0d6d54;
    --accent: #d4af37;
    --accent-light: #f3cf7a;
    --text-main: #1a202c;
    --text-muted: #4a5568;
    --bg-main: #fcfdfc;
    --bg-white: #ffffff;
    --glass: rgba(255, 255, 255, 0.95);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
    --radius-lg: 2.5rem;
    --radius-md: 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Nastaliq Urdu', serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 2;
    overflow-x: hidden;
    scroll-behavior: smooth;
    direction: rtl;
}

.en {
    font-family: 'Outfit', sans-serif;
    direction: ltr;
    display: inline-block;
}

/* --- Navigation --- */
header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(6, 78, 59, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .nav-inner {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    .nav-links {
        gap: 1.5rem;
    }
}

/* --- Hero --- */
.hero {
    padding: 3rem 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.hero-text h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.promo-tag {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: inline-block;
    margin-top: 1rem;
}

.product-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.product-box img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(6, 78, 59, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

@media (min-width: 992px) {
    .hero {
        flex-direction: row;
        text-align: right;
        padding: 5rem 1.25rem;
        justify-content: space-between;
    }
    .hero-text {
        flex: 1;
    }
    .product-box {
        flex: 0 0 450px;
    }
}

/* --- Sections --- */
section {
    padding: 4rem 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.title-center {
    text-align: center;
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 3rem;
}

/* --- Generic Grid --- */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card-pos {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border-top: 6px solid var(--primary);
}

.card-pos i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.card-pos h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

/* --- Complications --- */
.dark-box {
    background: #111;
    color: white;
    padding: 3rem 1.5rem;
    border-radius: var(--radius-lg);
    margin: 4rem auto;
    text-align: center;
}

.complications-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.comp-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

/* --- Steps --- */
.steps-stack {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    background: white;
    padding: 1.25rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow);
    border-right: 6px solid var(--primary);
}

.step-badge {
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* --- Expert --- */
.expert-layout {
    background: #f0f7f3;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin: 4rem auto;
}

.expert-img-box {
    width: 100%;
    max-width: 300px;
}

.expert-img-box img {
    width: 100%;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
}

.expert-content {
    flex: 1;
}

@media (min-width: 768px) {
    .expert-layout {
        flex-direction: row-reverse;
        padding: 4rem;
        text-align: right;
    }
}

/* --- Spinner --- */
.spinner-luxury {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    padding: 4rem 1.25rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 4rem auto;
    border: 1px solid rgba(6, 78, 59, 0.1);
}

.spin-wheel-box {
    position: relative;
    width: clamp(260px, 80vw, 350px);
    height: clamp(260px, 80vw, 350px);
    margin: 3rem auto;
}

.spin-arrow {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    z-index: 10;
}

#spinner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: transform 4s cubic-bezier(0.1, 0, 0.1, 1);
}

/* --- Form --- */
.form-luxury-box {
    background: var(--primary);
    color: white;
    padding: 4rem 1.25rem;
    border-radius: var(--radius-lg);
    margin: 4rem auto;
    text-align: center;
}

.form-card {
    background: white;
    color: var(--text-main);
    max-width: 500px;
    margin: 3rem auto 0;
    padding: 2.5rem 1.5rem;
    border-radius: 2rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #edf2f7;
    border-radius: 1rem;
    font-size: 1.1rem;
    outline: none;
    background: white;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
}

.btn-premium {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(to right, var(--accent), #b38b1d);
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* --- Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
