@charset "UTF-8";

/* =========================================================================
   Controlul Miopiei - Main Theme Styles
   Based on demo1.html (Bootstrap 5 overlay)
========================================================================= */

:root {
    --primary: #059669; /* Emerald Green */
    --primary-light: #34d399;
    --secondary: #8b5cf6; /* Soft Purple */
    --secondary-light: #a78bfa;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
}

/* Gradient Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
}

/* Custom Buttons */
.btn-custom {
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary-custom {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}
.btn-primary-custom:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}
.btn-outline-custom {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}
.btn-outline-custom:hover {
    background: var(--secondary) !important;
    color: white !important;
}

/* Navbar */
.navbar {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary);
}
.navbar-brand i {
    color: var(--secondary);
}
.nav-link {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 10px;
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

/* Hero Section with Video Background */
.hero-section {
    position: relative;
    padding: 120px 0 250px 0; /* Extra bottom padding for overlapping cards */
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: #e2e8f0;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: focusPull 4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    transform: scale(1.05);
}
@keyframes focusPull {
    0% { filter: blur(25px); transform: scale(1.15); }
    100% { filter: blur(0px); transform: scale(1.05); }
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 45%, rgba(255,255,255,0) 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-floating-img {
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 8px solid white;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Page Headers (Simple Headers) */
.page-hero {
    position: relative;
    padding: 140px 0 80px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ebedee 100%);
    overflow: hidden;
}
.page-hero-small {
    padding: 100px 0 40px 0;
}

/* Decorative Blobs */
.blob {
    position: absolute;
    z-index: -1;
    filter: blur(40px);
    opacity: 0.6;
}
.blob-1 { top: 10%; right: 10%; width: 300px; height: 300px; background: #a7f3d0; border-radius: 50%; }
.blob-2 { bottom: 10%; left: 5%; width: 250px; height: 250px; background: #ddd6fe; border-radius: 50%; }

/* Overlapping Feature Cards */
.features-wrapper {
    margin-top: -150px;
    position: relative;
    z-index: 10;
}
.feature-card, .article-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}
.feature-card:hover, .article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.card-img-wrapper {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
    height: 160px;
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.feature-card:hover .card-img-wrapper img,
.article-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}
.badge-custom {
    background: #e0e7ff;
    color: var(--secondary);
    font-weight: 700;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: inline-block;
}

/* Sections General */
section {
    padding: 100px 0;
    position: relative;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

/* Abstract Illustration placeholders */
.illustration-box {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 40px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.illustration-box img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Video/Service Guides */
.video-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    cursor: pointer;
    display: block;
    text-decoration: none;
}
.video-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.video-card:hover img {
    transform: scale(1.05);
}
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 2;
}
.video-card:hover .play-btn {
    background: var(--secondary);
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}
.video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    font-weight: 700;
    margin: 0;
    z-index: 1;
}

/* About Section */
.about-card {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

/* Social Banner */
.social-banner {
    background: linear-gradient(135deg, var(--secondary), #7c3aed);
    padding: 80px 0;
    color: white;
    text-align: center;
}
.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s;
    text-decoration: none;
}
.social-icon:hover {
    background: white;
    color: var(--secondary);
    transform: translateY(-5px);
}

/* Tables and Service Lists */
.service-table {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: white;
}
.service-table th {
    background: var(--bg-light);
    color: var(--primary);
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 2px solid #e2e8f0;
}
.service-table td {
    padding: 20px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}
.service-table tr:last-child td {
    border-bottom: none;
}
.highlight-row {
    background: #f0fdf4 !important;
}

/* Markdown Articles Content */
.prose {
    line-height: 1.8;
    color: #334155;
    font-size: 1.1rem;
}
.prose h2 {
    color: var(--primary);
    margin-top: 2em;
    margin-bottom: 0.8em;
}
.prose p {
    margin-bottom: 1.5em;
}
.prose ul {
    margin-bottom: 2em;
}
.prose li {
    margin-bottom: 0.5em;
}

/* Footer */
footer {
    background: #f8fafc;
    padding: 80px 0 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
footer h5 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
}
footer ul {
    list-style: none;
    padding: 0;
}
footer ul li {
    margin-bottom: 12px;
}
footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: var(--primary);
}

/* Chat Button Floating */
.chat-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
    font-size: 24px;
    cursor: pointer;
    z-index: 1500;
    transition: all 0.2s;
    border: none;
}
.chat-fab:hover {
    transform: scale(1.1);
    background: var(--primary-light);
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .hero-content h1 { font-size: 2.8rem; }
    .features-wrapper { margin-top: -80px; }
    .about-card { padding: 40px 20px; }
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    section { padding: 60px 0; }
    .page-hero { padding: 100px 0 60px 0; }
}
