/* =========================================
   1. VARIABLES & GLOBAL
   ========================================= */
:root {
    --bg-main: #0f172a;       /* Slate 900 */
    --bg-card: #1e293b;       /* Slate 800 */
    --primary-blue: #3b82f6;  /* Brand Blue */
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.05);
}

body {
    background: var(--bg-main);
    color: var(--text-white);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Gradient Text (Home Page Style) */
.text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* =========================================
   2. HERO SECTION (VIDEO BG)
   ========================================= */
.vp-hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Video Wrapper */
.video-bg-wrap {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Video covers full area */
}

/* Overlay to darken video */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75); /* Deep Navy Overlay */
    z-index: 1;
}

.relative-z { position: relative; z-index: 2; }

.vp-hero-content {
    max-width: 800px;
}

.vp-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.vp-hero p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-btns { display: flex; gap: 20px; }

/* White Outline Button */
.btn-outline-white {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    transition: 0.3s;
    font-weight: 500;
}
.btn-outline-white:hover {
    background: white;
    color: var(--bg-main);
}

/* =========================================
   3. SERVICES SECTION
   ========================================= */
.vp-services { padding: 100px 0; }

/* Home Page Style Header */
.sec-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

.sec-title-box h2 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.sec-desc-box { max-width: 500px; }
.sec-desc-box p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Services Grid */
.vp-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.vp-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 12px;
    transition: 0.3s;
    border: 1px solid var(--border-color);
}

.vp-card:hover, .vp-card.featured {
    border-color: var(--primary-blue);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.icon-box {
    width: 70px; height: 70px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.vp-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: white; }
.vp-card p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.vp-card ul { padding-left: 20px; list-style: disc; color: #cbd5e1; }
.vp-card ul li { margin-bottom: 8px; }

/* =========================================
   4. VIDEO SHOWCASE (Dynamic)
   ========================================= */
.bg-darker {
    background: #0b1120; /* Slightly Darker Navy */
    padding: 100px 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Video Card (Reused Style) */
.video-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid var(--border-color);
}
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--primary-blue);
}

.thumb-box { height: 200px; position: relative; }
.thumb-box img { width: 100%; height: 100%; object-fit: cover; }

.play-icon {
    position: absolute; top:50%; left:50%;
    transform:translate(-50%,-50%);
    width:50px; height:50px;
    background:rgba(59,130,246,0.9);
    border-radius:50%;
    display:flex; justify-content:center; align-items:center;
    color:white;
    font-size: 1.2rem;
    box-shadow: 0 0 0 5px rgba(59,130,246,0.3);
}

.info-box { padding: 20px; }
.info-box h4 { font-size: 1.1rem; margin: 0; color: white; }

.big-btn { padding: 15px 40px; font-size: 1.1rem; }
.mt-50 { margin-top: 50px; }

/* =========================================
   5. APPOINTMENT MODAL
   ========================================= */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none; justify-content: center; align-items: center;
}
.modal-overlay.active { display: flex; animation: fadeIn 0.3s; }

.appt-box {
    background: #111827;
    width: 90%; max-width: 600px;
    padding: 40px; border-radius: 16px;
    border: 1px solid #374151;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.close-modal {
    position: absolute; top: 15px; right: 20px;
    background:none; border:none; color:white;
    font-size:2rem; cursor:pointer;
}

.modal-header-text h3 { font-size: 1.8rem; margin-bottom: 5px; }
.modal-header-text p { color: var(--text-muted); margin-bottom: 30px; }

.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-group { flex: 1; }
.form-group label { display: block; margin-bottom: 8px; color: #cbd5e1; font-size: 0.9rem; }
.req { color: #ef4444; }

.form-group input {
    width: 100%; padding: 12px;
    background: #1f2937; border: 1px solid #374151;
    border-radius: 8px; color: white;
    outline: none; transition: 0.3s;
}
.form-group input:focus { border-color: var(--primary-blue); }

.submit-btn {
    width: 100%; padding: 14px;
    background: var(--primary-blue); color: white;
    border: none; border-radius: 8px;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: 0.3s;
}
.submit-btn:hover { background: #2563eb; }

@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }

/* =========================================
   6. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .vp-hero h1 { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; text-align: center; }
    
    .sec-header-flex { flex-direction: column; align-items: flex-start; gap: 15px; }
    .sec-title-box h2 { font-size: 2.2rem; }
    
    .form-row { flex-direction: column; gap: 15px; }
}