@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --background: #ffffff;
    --section-bg: #f8fafc;
    --hero-bg: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
    --header-height: 80px;
    --footer-bg: #ffffff;
    --footer-text: #1e293b;
}

[data-theme='dark'],
.dark-mode {
    --background: #0f172a;
    --section-bg: #1e293b;
    --hero-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --card-bg: #1e293b;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.6);
    --footer-bg: #0f172a;
    --footer-text: #f1f5f9;
}

.theme-toggle {
    font-size: 20px;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.theme-toggle:hover {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}
body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    margin-bottom: 0.5em;
}

h1 {
    font-weight: 700;
}

h2 {
    font-weight: 600;
}

h3 {
    font-weight: 500;
}

h4,
h5,
h6 {
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
}

.btn-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}


.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.first-section-offset {
    padding-top: calc(var(--header-height) + 60px) !important;
}

@media (max-width: 768px) {
    .first-section-offset {
        padding-top: calc(var(--header-height) + 40px) !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
}

.mb-5 {
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.bg-section {
    background-color: var(--section-bg);
}

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Animations */
.reveal {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
}

.fade-bottom {
    transform: translateY(50px);
}

.fade-bottom.active {
    transform: translateY(0);
}

.fade-left {
    transform: translateX(-100px);
}

.fade-left.active {
    transform: translateX(0);
}

.fade-right {
    transform: translateX(100px);
}

.fade-right.active {
    transform: translateX(0);
}

.pop-up {
    transform: scale(0.8);
}

.pop-up.active {
    transform: scale(1);
}

/* Header */
header {
    height: var(--header-height);
    background: var(--background);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo i {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}


.mobile-nav-btns {
    display: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--card-bg);
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1002;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--section-bg);
    color: var(--primary);
    padding-left: 25px;
}

.nav-link i.fa-chevron-down {
    font-size: 10px;
    margin-left: 5px;
    transition: var(--transition);
}

.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.nav-btns {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

/* Hero Sections */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    background: var(--hero-bg);
    color: var(--text-main);
    overflow: hidden;
}

.hero-reverse {
    flex-direction: row-reverse;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
}

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

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-img {
    width: 100%;
    height: 180px;
    border-radius: 15px;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* How It Works */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
    position: relative;
}

.step-card {
    position: relative;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 20px;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 20px;
}

/* Doctors */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.doctor-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.doctor-card:hover {
    box-shadow: var(--shadow-lg);
}

.doctor-img {
    height: 380px;
    overflow: hidden;
}

.doctor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
}

.doctor-card:hover .doctor-img img {
    transform: scale(1.1);
}

.doctor-info {
    padding: 20px;
    text-align: center;
}

.doctor-info h3 {
    margin-bottom: 5px;
}

.doctor-info p {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 15px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    text-align: center;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.patient-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: left;
    /* Keep names left-aligned relative to each other if desired, or center them too */
}

.patient-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* CTA & Statistics */
.cta-section {
    background: linear-gradient(rgba(37, 99, 235, 0.9), rgba(37, 99, 235, 0.9)), url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&q=80&w=2070') no-repeat center center/cover;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Doctor Page CTA */
.doctor-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 40px;
    border-radius: 30px;
    color: var(--white);
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.doctor-cta::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.doctor-cta::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.doctor-cta-content {
    position: relative;
    z-index: 1;
}

.doctor-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--white);
}

.doctor-cta p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.doctor-cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.doctor-cta .btn-primary {
    background: var(--white);
    color: var(--primary);
    border: none;
}

.doctor-cta .btn-primary:hover {
    background: #f8fafc;
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.join-contact-btn {
    border-color: var(--white) !important;
    color: var(--white) !important;
}

.join-contact-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-3px);
}

[data-theme='dark'] .doctor-cta {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid var(--border-color);
}

/* Contact Page Styles */
.contact-hero {
    background: var(--hero-bg);
    padding: 120px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.contact-hero h1 {
    font-size: 3.5rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
    /* Ensures top alignment */
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-btn {
    width: auto;
    min-width: 180px;
    margin-top: 10px;
}

/* Social Links Global */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--section-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

[data-theme='dark'] .social-links a {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

[data-theme='dark'] .social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
}



.stats-section {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h2 {
    font-size: 3rem;
    margin-bottom: 5px;
}

/* App Section */
.app-section {
    display: flex;
    align-items: center;
    gap: 50px;
}

.download-btns {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    background: #0f172a;
    color: var(--white);
    border-radius: 10px;
    min-width: 190px;
    white-space: nowrap;
}

.download-btn i {
    font-size: 28px;
}

.download-text span {
    display: block;
    font-size: 11px;
    opacity: 0.8;
}

.download-text strong {
    font-size: 18px;
}

/* Auth Pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--section-bg);
}

.auth-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    margin: 40px 20px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 25px;
}

.social-auth {
    margin-top: 30px;
    text-align: center;
}

.social-auth-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.social-auth-title::before,
.social-auth-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.social-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--card-bg);
    color: var(--text-main);
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Map Styles */
.map-section iframe {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    border: none;
    box-shadow: var(--shadow-lg);
    display: block;
}

@media (max-width: 768px) {
    .map-section iframe {
        height: 350px;
    }
}

.social-btn.google:hover {
    background: #ffffff;
    color: #ea4335;
    border-color: #ea4335;
}

[data-theme='dark'] .social-btn.google:hover {
    background: #ea4335;
    color: var(--white);
}

.social-btn.facebook:hover {
    background: #1877f2;
    color: var(--white);
    border-color: #1877f2;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    transition: var(--transition);
}

.auth-link {
    color: var(--primary);
    transition: var(--transition);
    position: relative;
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.role-selection {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.role-option {
    flex: 1;
    text-align: center;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.role-option i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.role-option.active {
    border-color: var(--primary);
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--primary);
}

/* Dashboard Styles */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--card-bg);
    color: var(--text-main);
    padding: 30px 20px;
    height: 100vh;
    position: sticky;
    top: 0;
    transition: var(--transition);
    z-index: 1000;
    border-right: 1px solid var(--border-color);
}

.sidebar-logo {
    margin-bottom: 40px;
    padding: 0 15px;
    display: block;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    color: var(--text-muted);
    border-radius: 10px;
    margin-bottom: 5px;
    transition: var(--transition);
    font-weight: 500;
}

.sidebar-link:hover {
    background: var(--section-bg);
    color: var(--primary);
    transform: translateX(5px);
}

.sidebar-link.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
}

.dash-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.dash-welcome {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
}

.dash-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-profile span {
    font-weight: 500;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.mobile-logo {
    display: none;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    align-items: center;
    gap: 8px;
}

.mobile-logo i {
    font-size: 24px;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
}

.main-content {
    flex: 1;
    padding: 40px;
    background: var(--section-bg);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.dash-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.content-table {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.table-header h3 {
    font-size: 1.1rem;
    color: var(--text-main);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8fafc;
    text-align: left;
    padding: 15px 25px;
    color: var(--text-muted);
}

td {
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-color);
}



/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 20px;
    border-top: 1px solid var(--border-color);
    transition: var(--transition);
}


.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-links h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: var(--text-main);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.faq-question i {
    font-size: 14px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 25px;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-question {
    background: rgba(37, 99, 235, 0.05);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust as needed */
    padding-top: 5px;
}

/* Features grid for Home 2 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 28px;
    color: var(--primary);
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 10px;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main);
    z-index: 1001;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--card-bg);
        display: flex;
        flex-direction: column;
        padding: 100px 40px 40px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .logo {
        font-size: 18px;
        gap: 6px;
        min-width: 0;
    }

    .logo i {
        font-size: 22px;
    }

    .nav-btns {
        gap: 8px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0;
        position: absolute;
        right: 60px;
    }


    .nav-btns .btn {
        display: none;
    }


    .mobile-nav-btns {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
    }

    .mobile-nav-btns .btn {
        display: block;
        text-align: center;
        width: 100%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-reverse .container {
        flex-direction: column-reverse;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        margin: 0 auto 30px;
    }

    .hero-btns {
        justify-content: center;
    }

    .dashboard-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        left: -100%;
        top: var(--header-height);
        z-index: 99;
    }

    /* Dashboard Sidebar Override */
    .dashboard-wrapper .sidebar {
        top: 0;
        height: 100vh;
        width: 280px;
        z-index: 1100;
    }

    .sidebar.active {
        left: 0;
    }

    .app-section {
        flex-direction: column;
        text-align: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .download-btns {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .auth-container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 20px;
    }
}

@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .nav-btns {
        gap: 5px;
        right: 45px;
    }

    .logo {
        font-size: 15px;
        gap: 4px;
    }

    .logo i {
        font-size: 18px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}


/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

[data-theme='dark'] .back-to-top {
    background: var(--primary);
}



.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.sidebar-toggle {
    display: none !important;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
}

@media (max-width: 991px) {
    .sidebar-toggle {
        display: block !important;
    }

    .dash-header {
        justify-content: space-between;
        padding: 0;
        gap: 15px;
        margin-bottom: 25px;
    }

    .mobile-logo {
        display: flex;
    }

    .sidebar-toggle {
        display: block !important;
        margin-left: 0;
        order: -1;
    }

    .main-content {
        padding: 20px 25px;
    }

    .dash-welcome {
        display: none;
    }

    .dash-header-right {
        gap: 12px;
    }

    .user-profile span {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .dash-welcome {
        display: none;
        /* Hide welcome text on smallest screens to save space */
    }

    .dash-header {
        padding: 15px 0;
    }

    .contact-hero h1 {
        font-size: 2.2rem;
    }

    .contact-hero {
        padding: 100px 0 40px;
    }

    .contact-card {
        padding: 25px 15px;
    }

    .contact-hero p {
        font-size: 1rem !important;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
