:root {
    --primary-color: #3f51b5;
    --primary-light: #7986cb;
    --primary-dark: #303f9f;
    --primary-color-rgb: 63, 81, 181;
    --secondary-color: #ff4081;
    --secondary-light: #ff80ab;
    --secondary-dark: #f50057;
    --secondary-color-rgb: 255, 64, 129;
    --text-color: #212121;
    --text-light: #757575;
    --text-white: #ffffff;
    --bg-color: #f8f9fa;
    --card-color: #ffffff;
    --border-radius: 16px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    direction: rtl;
}

body {
    font-family: 'Vazirmatn FD', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

/* App Container */
.app-landing {
    position: relative;
    overflow: hidden;
    padding-bottom: 80px;
}

/* App Header & Navigation */
.app-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.app-nav {
    display: flex;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px;
    box-shadow: var(--shadow-md);
}

.nav-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    border-radius: 40px;
    color: var(--text-light);
    transition: var(--transition);
    cursor: pointer;
}

.nav-pill.active {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.nav-pill i {
    font-size: 18px;
    margin-bottom: 5px;
}

.nav-pill span {
    font-size: 12px;
    font-weight: 500;
}

.app-logo {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 24px;
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.section-hero {
    min-height: 100vh; /* Allow growing beyond viewport height if needed */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: 120px; /* Added to push content below fixed header */
    position: relative;
    overflow: hidden;
    box-sizing: border-box; /* Ensure padding is included in height calculation */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape1 {
    top: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background-color: var(--primary-color);
}

.shape2 {
    bottom: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background-color: var(--secondary-color);
}

.shape3 {
    top: 40%;
    left: 30%;
    width: 30%;
    height: 30%;
    background-color: var(--primary-light);
}

.bg-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--text-light) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

.hero-content {
    max-width: 600px;
    text-align: center;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--primary-dark);
    font-weight: 900;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 74.4px;
  color: var(--text-light);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 5px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    gap: 10px;
    min-width: 160px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    transform: translateY(0);
}

.btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn span {
    font-size: 14px;
}

.btn:hover i {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(63, 81, 181, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    border: 2px solid transparent;
    position: relative;
    z-index: 1;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.btn-outline:hover {
    color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(63, 81, 181, 0.15);
    transform: translateY(-2px);
}

/* Remove pulse animation from buttons */
.pulse {
    animation: none;
}

.hero-mockup {
    margin-top: 20px;
    position: relative;
    height: 400px;
    width: 100%;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    overflow: visible;
}

.mockup-img {
    position: relative;
    max-height: none;
    height: 120%;
    z-index: 5;
    transform: translateY(-10%) scale(1.1);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

/* Doctor Bottom Decorator */
.doctor-bottom-decorator {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 4;
    opacity: 0.15;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.doctor-platform {
	display: block; /* Make it visible */
    position: absolute;
    bottom: -5px; /* Position slightly overlapping the bottom edge */
    left: 50%;
    transform: translateX(-50%);
    width: 90%; /* Adjust width if needed */
    height: 25px; /* Give it some height */
    background: linear-gradient(to top, rgba(240, 244, 255, 0), rgba(240, 244, 255, 0.8) 70%); /* Gradient fade */
    border-radius: 50% / 100%; /* Elliptical shape */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 6; /* Ensure it's above the glow but below the image */
    filter: blur(5px); /* Add blur for softness */
    opacity: 0.9; /* Adjust opacity */
    /* Remove the old box-shadow if desired */
}

.doctor-glow {
    position: absolute;
    bottom: 0%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(63, 81, 181, 0.3) 0%, rgba(63, 81, 181, 0) 70%);
    z-index: 3;
    filter: blur(5px);
    opacity: 0.8;
}

@keyframes float {
    0%, 100% {
        transform: translateY(-10%) scale(1.1);
    }
    50% {
        transform: translateY(-15%) scale(1.1) rotate(1deg);
    }
}

.hero-mockup::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 75%;
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.1), rgba(255, 64, 129, 0.1));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 15%;
    z-index: 2;
    animation: morphShape 10s ease-in-out infinite alternate;
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.5),
        0 10px 20px rgba(0, 0, 0, 0.1);
}

@keyframes morphShape {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    }
    50% {
        border-radius: 30% 70% 50% 50% / 40% 30% 70% 60%;
    }
    75% {
        border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
    }
    100% {
        border-radius: 40% 60% 40% 60% / 50% 50% 50% 50%;
    }
}

.hero-mockup::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: 35%;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-dark), 0.1) 0%, rgba(var(--primary-light), 0) 70%);
    animation: pulse 3s ease-in-out infinite;
    z-index: 6;
}

.stethoscope-highlight {
    position: absolute;
    top: 45%;
    right: 35%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 64, 129, 0.2) 0%, rgba(255, 64, 129, 0) 70%);
    z-index: 7;
    animation: pulse 3s ease-in-out infinite;
}

.doctor-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.doctor-dot {
    position: absolute;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.15;
}

.dot1 {
    width: 20px;
    height: 20px;
    top: 20%;
    right: 18%;
    animation: moveDot 8s ease-in-out infinite;
}

.dot2 {
    width: 15px;
    height: 15px;
    bottom: 25%;
    left: 20%;
    background-color: var(--secondary-color);
    animation: moveDot 9s ease-in-out infinite 1s;
}

.dot3 {
    width: 10px;
    height: 10px;
    top: 35%;
    left: 15%;
    background-color: var(--primary-light);
    animation: moveDot 10s ease-in-out infinite 0.5s;
}

@keyframes moveDot {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, -10px);
    }
    50% {
        transform: translate(0, -20px);
    }
    75% {
        transform: translate(-10px, -10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.4;
    }
}

/* Animation Classes */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Common Section Styles */
section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin: 8px auto 0;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Video Section */
.section-video {
    background-color: #f0f4ff;
    padding: 60px 20px;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
}

.video-player {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-player video {
    width: 100%;
    border-radius: var(--border-radius);
    display: block;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.video-play-button i {
    font-size: 32px;
    color: var(--primary-dark);
}

.video-play-button:hover {
    background-color: var(--primary-color);
}

.video-play-button:hover i {
    color: var(--text-white);
}

/* Features Section */
.section-features {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.section-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-light) 1px, transparent 1px),
                      radial-gradient(var(--secondary-light) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.05;
    z-index: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(var(--primary-color-rgb, 63, 81, 181), 0.08);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease-out;
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 28px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 20px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 20px -10px rgba(var(--primary-color-rgb), 0.5);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon {
    transform: rotate(-10deg) scale(1.1);
}

.feature-icon i {
    font-size: 30px;
    color: white;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.2);
}

.feature-icon-bg {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    border-radius: 20px;
    z-index: 1;
    opacity: 0.2;
    transition: all 0.5s ease;
}

.feature-card:hover .feature-icon-bg {
    transform: rotate(20deg) scale(1.2);
    opacity: 0.3;
    filter: blur(4px);
}

.feature-card-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-light), transparent);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
    transition: all 0.5s ease;
}

.feature-card:hover .feature-card-shape {
    transform: scale(2);
    opacity: 0.15;
    filter: blur(8px);
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.4rem;
    color: var(--primary-dark);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.feature-card:hover h3::after {
    width: 70%;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.feature-card:hover p {
    color: var(--text-color);
}

/* Features CTA Button */
.features-cta {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.features-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 35px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(var(--secondary-color-rgb), 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.features-action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.features-action-button:hover::before {
    transform: translateX(100%);
}

.features-action-button i {
    font-size: 1.4rem;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.features-action-button span {
    position: relative;
    z-index: 2;
}

.features-action-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(var(--secondary-color-rgb), 0.6);
}

.features-action-button:hover i {
    transform: rotate(10deg);
}

.button-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.features-action-button:hover .button-glow {
    opacity: 0.4;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.4;
    }
}

@media (max-width: 768px) {
    .features-action-button {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .features-action-button i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .features-action-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .features-action-button i {
        font-size: 1.1rem;
    }
    
    .features-cta {
        margin-top: 40px;
    }
}

/* Steps Section */
.section-steps {
    background-color: #f8f9fa;
}

.steps-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.steps-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 34px;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-light), var(--secondary-light));
    border-radius: 2px;
}

.step-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.step-content {
    flex: 1;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-right: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.step-icon {
    width: 50px;
    height: 50px;
    background-color: #f0f4ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.step-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.step-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.step-content p {
    color: var(--text-light);
    margin: 0;
}

/* Modern Grid-based Download Cards Section */
.section-download {
    padding: 80px 20px;
    background: linear-gradient(170deg, #f0f4ff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.section-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(63, 81, 181, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 64, 129, 0.1) 0%, transparent 20%);
    z-index: 0;
}

.download-container {
    max-width: 1200px;
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* Compact Download Card Styling */
.download-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(63, 81, 181, 0.05);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.download-card-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(63, 81, 181, 0.08);
}

.file-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* Different colored icons based on file type */
.download-card[data-type="pdf"] .file-icon {
    background: linear-gradient(135deg, #FF5252, #FF1744);
    color: white;
}

.download-card[data-type="document"] .file-icon {
    background: linear-gradient(135deg, #2979FF, #2962FF);
    color: white;
}

.download-card[data-type="image"] .file-icon {
    background: linear-gradient(135deg, #00C853, #00B248);
    color: white;
}

.download-card[data-type="video"] .file-icon {
    background: linear-gradient(135deg, #AA00FF, #7C00FF);
    color: white;
}

.download-card[data-type="audio"] .file-icon {
    background: linear-gradient(135deg, #FF9100, #FF6D00);
    color: white;
}

.file-details {
    flex: 1;
    overflow: hidden;
}

.file-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 5px;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-light);
    gap: 8px;
}

.file-type {
    background: rgba(63, 81, 181, 0.1);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.file-size {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.download-card-body {
    padding: 12px 16px;
    flex-grow: 1;
}

.file-description {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
    max-height: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.download-card-footer {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f9ff;
    border-top: 1px solid rgba(63, 81, 181, 0.05);
}

.download-button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 6px 12px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.download-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(63, 81, 181, 0.2);
}

.download-button i {
    font-size: 0.9rem;
}

/* Empty state for no downloads */
.download-empty {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    grid-column: 1 / -1;
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(63, 81, 181, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary-color);
}

.download-empty h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.download-empty p {
    color: var(--text-light);
    margin: 0;
}

/* Animation for download cards appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-card {
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

/* Staggered animation delays for download cards */
.download-card:nth-child(1) { animation-delay: 0.1s; }
.download-card:nth-child(2) { animation-delay: 0.12s; }
.download-card:nth-child(3) { animation-delay: 0.14s; }
.download-card:nth-child(4) { animation-delay: 0.16s; }
.download-card:nth-child(5) { animation-delay: 0.18s; }
.download-card:nth-child(6) { animation-delay: 0.2s; }
.download-card:nth-child(7) { animation-delay: 0.22s; }
.download-card:nth-child(8) { animation-delay: 0.24s; }
.download-card:nth-child(9) { animation-delay: 0.26s; }
.download-card:nth-child(10) { animation-delay: 0.28s; }
.download-card:nth-child(11) { animation-delay: 0.3s; }
.download-card:nth-child(12) { animation-delay: 0.32s; }

/* Responsive styling for desktop and tablets */
@media (max-width: 768px) {
    .download-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .download-container {
        grid-template-columns: 1fr;
    }
    
    .section-download {
        padding: 60px 15px;
    }
    
    .download-card-header {
        padding: 10px 12px;
    }
    
    .file-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .file-name {
        font-size: 0.95rem;
    }
    
    .file-meta {
        font-size: 0.7rem;
    }
    
    .download-card-body {
        padding: 10px 12px;
    }
    
    .file-description {
        font-size: 0.8rem;
    }
    
    .download-card-footer {
        padding: 8px 12px;
    }
    
    .download-button {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

/* FAQ Section */
.section-faq {
    position: relative;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f9f9f9 0%, #f5f5f5 100%);
    overflow: hidden;
}

.section-faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(78, 91, 199, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
}

/* Background effects */
.faq-background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.5;
}

.faq-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(63, 81, 181, 0.05);
    transform: scale(0);
    animation: faqRipple 15s ease-in-out infinite;
}

@keyframes faqRipple {
    0% { transform: scale(0); opacity: 0; }
    20% { opacity: 0.3; }
    80% { opacity: 0.1; }
    100% { transform: scale(3); opacity: 0; }
}

.faq-accordion {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    z-index: 1;
}

/* FAQ Search */
.faq-search-container {
    margin: 40px auto 10px;
    max-width: 500px;
    padding: 0 20px;
}

.faq-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-search-wrapper:hover, 
.faq-search-wrapper:focus-within {
    box-shadow: 0 10px 30px rgba(63, 81, 181, 0.1);
}

.faq-search-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.faq-search-wrapper:focus-within::before {
    transform: scaleX(1);
}

.search-icon {
    color: #aaa;
    margin-right: 10px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.faq-search-wrapper:focus-within .search-icon {
    color: var(--primary-color);
}

#faqSearch {
    border: none;
    background: transparent;
    padding: 8px 0;
    width: 100%;
    outline: none;
    font-size: 14px;
    color: #333;
}

#faqSearch::placeholder {
    color: #aaa;
    transition: opacity 0.3s ease;
}

#faqSearch:focus::placeholder {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .faq-search-container {
        max-width: 100%;
        padding: 0 10px;
    }
}

.faq-item {
    position: relative;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Initial state for staggered animation */
    opacity: 0;
    transform: translateY(30px);
    width: 100%;
}

/* Ensure the question area is fully accessible */
.faq-question:focus {
    outline: none;
    background: rgba(255, 186, 8, 0.05);
    box-shadow: inset 0 0 0 2px rgba(255, 186, 8, 0.3);
}

.faq-question:focus .faq-icon {
    background: rgba(255, 186, 8, 0.1);
    color: #d9a400;
}

/* Ensure area is fully clickable */
.faq-question-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 0;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.faq-item.active {
    box-shadow: 0 15px 40px rgba(78, 91, 199, 0.1);
}

.faq-item.active::before {
    opacity: 1;
    transform: scaleY(1);
}

.faq-question {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 30px;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 1;
    user-select: none;
}

.faq-question * {
    pointer-events: none;
}

.faq-question:hover {
    background: rgba(63, 81, 181, 0.02);
}

.faq-question h3 {
    color: #333;
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    padding-right: 50px;
    transition: color 0.3s ease;
}

.faq-item.active .faq-question h3 {
    color: var(--primary-color);
}

.faq-category {
    display: none; /* Hide category tags */
}

.toggle-icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-icon::before, 
.toggle-icon::after {
    content: '';
    position: absolute;
    background: #aaa;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toggle-icon::before {
    top: 11px;
    left: 0;
    width: 24px;
    height: 2px;
}

.toggle-icon::after {
    top: 0;
    left: 11px;
    width: 2px;
    height: 24px;
}

.faq-item.active .toggle-icon::before,
.faq-item.active .toggle-icon::after {
    background: var(--primary-color);
}

.faq-item.active .toggle-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 30px;
    background: rgba(63, 81, 181, 0.02);
    border-top: 1px solid rgba(0,0,0,0);
    transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.faq-item.active .faq-answer {
    height: auto;
    opacity: 1;
    padding: 5px 30px 25px;
    border-top: 1px solid rgba(63, 81, 181, 0.08);
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
    margin: 15px 0 0;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease 0.1s, opacity 0.5s ease 0.1s;
}

.faq-item.active .faq-answer p {
    transform: translateY(0);
    opacity: 1;
}

.faq-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(63, 81, 181, 0.08);
    border-radius: 50%;
    margin-right: 15px;
    color: #aaa;
    transform: scale(1);
    opacity: 1;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible;
}

.faq-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 186, 8, 0.4) 0%, rgba(255, 186, 8, 0) 70%);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: -1;
}

.faq-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 186, 8, 0.2) 0%, rgba(255, 186, 8, 0) 60%);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: -1;
}

.faq-item.active .faq-icon {
    background: rgba(255, 186, 8, 0.2);
    color: #ff9800;
    box-shadow: 0 0 15px rgba(255, 186, 8, 0.5);
}

.faq-item.active .faq-icon::before {
    opacity: 1;
    transform: scale(1);
    animation: light-pulse 2s ease-in-out infinite;
}

.faq-item.active .faq-icon::after {
    opacity: 1;
    transform: scale(1);
    animation: light-pulse 2s ease-in-out 0.3s infinite;
}

@keyframes light-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.5); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.7; }
}

.faq-icon i {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 16px;
    position: relative;
}

.faq-icon i::before {
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon i {
    transform: scale(1.2);
    animation: bulb-glow 0.5s ease forwards;
}

@keyframes bulb-glow {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1.2); }
}

/* Light rays effect for active bulb */
.faq-item.active .light-rays {
    opacity: 1;
}

.light-rays {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.light-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 2px;
    width: 12px;
    background: #ff9800;
    transform-origin: 0 0;
    opacity: 0;
}

.faq-item.active .light-ray:nth-child(1) {
    transform: rotate(0deg);
    animation: ray-show 1.5s ease-out 0.1s infinite;
}

.faq-item.active .light-ray:nth-child(2) {
    transform: rotate(45deg);
    animation: ray-show 1.5s ease-out 0.2s infinite;
}

.faq-item.active .light-ray:nth-child(3) {
    transform: rotate(90deg);
    animation: ray-show 1.5s ease-out 0.3s infinite;
}

.faq-item.active .light-ray:nth-child(4) {
    transform: rotate(135deg);
    animation: ray-show 1.5s ease-out 0.4s infinite;
}

.faq-item.active .light-ray:nth-child(5) {
    transform: rotate(180deg);
    animation: ray-show 1.5s ease-out 0.5s infinite;
}

.faq-item.active .light-ray:nth-child(6) {
    transform: rotate(225deg);
    animation: ray-show 1.5s ease-out 0.6s infinite;
}

.faq-item.active .light-ray:nth-child(7) {
    transform: rotate(270deg);
    animation: ray-show 1.5s ease-out 0.7s infinite;
}

.faq-item.active .light-ray:nth-child(8) {
    transform: rotate(315deg);
    animation: ray-show 1.5s ease-out 0.8s infinite;
}

@keyframes ray-show {
    0% { width: 0px; opacity: 1; }
    20% { width: 12px; opacity: 1; }
    100% { width: 5px; opacity: 0; }
}

/* Override the previous animation for the FAQ icon */
.faq-item.active .faq-icon {
    animation: none;
}

/* Search match animation adjustment */
.search-match {
    animation: search-light-pulse 1s cubic-bezier(0.455, 0.03, 0.515, 0.955) !important;
}

@keyframes search-light-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 186, 8, 0); }
    50% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(255, 186, 8, 0.3); }
}

.faq-question-wrapper {
    display: flex;
    align-items: center;
}

.faq-item.active .faq-icon {
    transform: scale(1);
    opacity: 1;
}

@keyframes pulse-faq {
    0% {
        box-shadow: 0 0 0 0 rgba(63, 81, 181, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(63, 81, 181, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(63, 81, 181, 0);
    }
}

.faq-item.active .faq-icon {
    animation: pulse-faq 1.5s infinite;
}

/* Empty and Error States */
.faq-empty, .faq-error {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin: 20px 0;
}

.empty-icon, .error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    animation: float 4s ease-in-out infinite;
}

.empty-icon {
    background: rgba(63, 81, 181, 0.08);
    color: var(--primary-color);
}

.error-icon {
    background: rgba(244, 67, 54, 0.08);
    color: #f44336;
}

.faq-empty h3, .faq-error h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #333;
}

.faq-empty p, .faq-error p {
    color: #666;
    max-width: 400px;
    margin: 0 auto;
}

/* FAQ Icon Animations */
.faq-icon i {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.faq-item:hover .faq-icon i {
    transform: rotate(-10deg);
}

.faq-item.active:hover .faq-icon i {
    transform: rotate(0deg) scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .faq-question {
        padding: 16px 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
    
    .faq-question h3 {
        font-size: 16px;
        padding-right: 30px;
    }
    
    .faq-icon {
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 14px 16px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 16px 16px;
    }
    
    .faq-question h3 {
        font-size: 15px;
    }
    
    .toggle-icon {
        width: 20px;
        height: 20px;
    }
    
    .toggle-icon::before {
        width: 20px;
        top: 9px;
    }
    
    .toggle-icon::after {
        height: 20px;
        left: 9px;
    }
    
    .empty-icon, .error-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .faq-empty h3, .faq-error h3 {
        font-size: 18px;
    }
}

/* Action Button */
.action-container {
    max-width: 500px;
    margin: 60px auto 0;
    text-align: center;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.action-button:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(var(--primary-color-rgb), 0.3);
}

.action-button:hover::before {
    opacity: 1;
}

.action-button i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.action-button:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 2;
    position: relative;
}

.fab i {
    font-size: 24px;
    transition: var(--transition);
}

.fab-options {
    position: absolute;
    bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    right: -10px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(10px);
}

.fab-container.active .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-container.active .fab i {
    transform: rotate(45deg);
}

.fab-option {
    min-width: 50px;
    height: 50px;
    border-radius: 25px;
    background-color: white;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    padding: 0 18px 0 12px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s ease;
}

.fab-option:hover {
    background-color: var(--primary-light);
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 8px 15px rgba(var(--primary-color-rgb), 0.3);
}

.fab-option i {
    font-size: 20px;
    margin-left: 8px;
}

.fab-option-text {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
	font-family: 'Vazirmatn FD', sans-serif;
}

/* Original hover tooltip styles - no longer needed with visible text */
.fab-option span:not(.fab-option-text) {
    display: none;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 12px;
    }
    
    .btn {
        padding: 12px 16px;
        min-width: 140px;
    }
    
    .btn i {
        font-size: 16px;
    }
    
    .btn span {
        font-size: 13px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 24px;
    }
    
    .steps-timeline:before {
        right: 24px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .step-content {
        margin-right: 20px;
        padding: 15px;
    }
    
    .step-content h4 {
        font-size: 1rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
    }
    
    .step-icon i {
        font-size: 20px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    section {
        padding: 60px 20px;
    }
    
    .hero-mockup {
        height: 350px;
    }
    
    .mockup-img {
        height: 110%;
    }
    
    .hero-mockup::before {
        width: 85%;
    }
    
    .stethoscope-highlight {
        width: 50px;
        height: 50px;
    }
    
    .doctor-bottom-decorator {
        height: 45px;
        bottom: 7%;
    }
    
    .doctor-platform {
        height: 12px;
    }
    
    .doctor-glow {
        height: 25px;
    }
    
    .features-grid {
        gap: 30px;
    }
    
    .feature-card {
        padding: 30px 25px;
    }
    
    .feature-icon-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .feature-icon-bg {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 24px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .fab-option {
        padding: 0 15px 0 10px;
    }
    
    .fab-option-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .app-nav {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-pill {
        
    }
    
    .nav-pill span {
        font-size: 10px;
    }
    
    .app-logo {
        display: none;
    }
    
    .hero-content {
        padding-top: 80px; /* Reduce top spacing */
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .mockup-img {
        height: 100%;
        transform: translateY(-5%) scale(1.05);
    }
    
    @keyframes float {
        0%, 100% {
            transform: translateY(-5%) scale(1.05);
        }
        50% {
            transform: translateY(-8%) scale(1.05) rotate(1deg);
        }
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .action-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .fab {
        width: 50px;
        height: 50px;
    }
    
    .fab i {
        font-size: 20px;
    }
    
    .fab-option {
        min-width: 40px;
        height: 40px;
        padding: 0 12px 0 8px;
    }
    
    .fab-option i {
        font-size: 16px;
        margin-left: 6px;
    }
    
    .fab-option-text {
        font-size: 12px;
    }
    
    .hero-mockup {
        height: 300px;
    }
    
    .hero-mockup::before {
        width: 90%;
        height: 70%;
    }
    
    .stethoscope-highlight {
        width: 40px;
        height: 40px;
        top: 40%;
        right: 30%;
    }
    
    .doctor-bottom-decorator {
        height: 35px;
        bottom: 8%;
        width: 95%;
    }
    
    .doctor-platform {
        height: 10px;
        width: 90%;
    }
    
    .doctor-glow {
        height: 20px;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 10px;
    }
    
    .btn {
        padding: 13px 18px; /* Increase button size by ~30% */
        min-width: 155px;
    }
    
    .btn i {
        font-size: 14px; /* Keep icon size proportional or adjust if needed */
    }
    
    .btn span {
        font-size: 1rem; /* Increase font size */
    }
    
    .features-grid {
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon-bg {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        font-size: 22px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Changed from flex to none */
    /* align-items: center; */ /* Removed */
    /* justify-content: center; */ /* Removed */
    z-index: 10000;
    /* visibility: hidden; */ /* Removed, handled by display:none */
    /* opacity: 0; */ /* Removed, handled by display:none */
    transition: opacity 0.4s ease; /* Keep transition for potential future use or if display changes */
}

.contact-modal.active {
    display: flex; /* Added */
    align-items: center; /* Added back */
    justify-content: center; /* Added back */
    visibility: visible;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-modal.active .modal-overlay {
    opacity: 1;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 450px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.contact-modal.active .modal-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
}

/* Intro Message Style */
.intro-message {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(var(--primary-color-rgb), 0.15);
    animation: fadeInDown 0.6s ease-out;
}

.intro-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 28px;
    position: relative;
    box-shadow: 0 10px 20px -10px rgba(var(--primary-color-rgb), 0.5);
    transform: rotate(-5deg);
    transition: all 0.3s ease;
}

.intro-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 25px;
    z-index: -1;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.intro-message:hover .intro-icon {
    transform: rotate(0) scale(1.05);
}

.intro-message p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    position: relative;
    padding: 0 5px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

.form-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 25px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.4s ease;
}

.form-step.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.input-group {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.input-icon {
    width: 40px;
    height: 40px;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-left: 15px;
    transition: all 0.3s ease;
}

.input-group input {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-color);
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(var(--primary-color-rgb), 0.2);
    overflow: hidden;
}

.input-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.input-group input:focus + .input-line::after,
.input-group input:valid + .input-line::after {
    transform: translateX(0);
}

.input-group input:focus ~ .input-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.form-error {
    color: #e53935;
    font-size: 0.9rem;
    margin-bottom: 15px;
    min-height: 20px;
    transition: all 0.3s ease;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50px;
    height: 54px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px -10px rgba(var(--primary-color-rgb), 0.5);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px rgba(var(--primary-color-rgb), 0.6);
}

.button-text {
    padding: 0 30px;
    transition: all 0.3s ease;
}

.button-icon {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 50px 50px 0;
    transition: all 0.3s ease;
}

.submit-button:hover .button-icon {
    width: 100%;
    background: rgba(0, 0, 0, 0.15);
}

.submit-button:hover .button-text {
    opacity: 0;
}

/* Loading Animation */
.loader {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.loader-circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin: 0 5px;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loader-circle:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-circle:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
    }
    40% { 
        transform: scale(1);
    }
}

#loadingStep p {
    text-align: center;
    color: var(--text-light);
}

/* Success Step */
.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    margin: 0 auto 20px;
    position: relative;
    box-shadow: 0 10px 20px -10px rgba(46, 125, 50, 0.5);
}

.success-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(46, 125, 50, 0.5);
    animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    80%, 100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

#successStep h4 {
    text-align: center;
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

#successStep p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 25px;
}

.confirm-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px -5px rgba(46, 125, 50, 0.5);
}

.confirm-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(46, 125, 50, 0.6);
}

@media (max-width: 768px) {
    .modal-container {
        max-width: 400px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .input-group {
        margin-bottom: 20px;
    }
    
    .input-icon {
        width: 36px;
        height: 36px;
    }
    
    .submit-button {
        height: 50px;
    }
    
    .button-icon {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: 90%;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
    
    .form-step {
        padding: 25px 20px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-close {
        width: 32px;
        height: 32px;
    }
    
    .input-icon {
        width: 32px;
        height: 32px;
        margin-left: 10px;
    }
    
    .input-group input {
        font-size: 0.9rem;
    }
    
    .submit-button {
        height: 46px;
    }
    
    .button-text {
        padding: 0 25px;
        font-size: 0.9rem;
    }
    
    .button-icon {
        width: 46px;
    }
    
    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
    
    #successStep h4 {
        font-size: 1.1rem;
    }
    
    #successStep p {
        font-size: 0.9rem;
    }
    
    .confirm-button {
        padding: 12px;
        font-size: 0.9rem;
    }
} 

/* Search Results Styling */
.search-highlight {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 15px 40px rgba(78, 91, 199, 0.15) !important;
    transform: translateY(-3px);
    z-index: 2;
}

.search-match {
    animation: search-pulse 1s cubic-bezier(0.455, 0.03, 0.515, 0.955) !important;
}

@keyframes search-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(63, 81, 181, 0); }
    50% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(63, 81, 181, 0.2); }
}

.faq-no-results {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin: 20px 0;
    animation: fadeIn 0.5s ease forwards;
}

.no-results-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(63, 81, 181, 0.08);
    color: var(--primary-color);
}

.faq-no-results h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.faq-no-results p {
    color: #666;
    max-width: 400px;
    margin: 0 auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
} 

/* Add this after the existing .faq-icon styles */
.bulb-flash {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 2;
    pointer-events: none;
}

/* Enhanced light effect for the bulb */
.faq-item.active .faq-icon i {
    text-shadow: 0 0 10px rgba(255, 186, 8, 0.8), 0 0 20px rgba(255, 186, 8, 0.4);
    transform: scale(1.2);
    animation: bulb-glow 0.5s ease forwards;
    color: #ffb300;
}

/* Additional glow effect for active bulb */
.faq-item.active .faq-icon::before {
    box-shadow: 0 0 30px 10px rgba(255, 186, 8, 0.3);
}

.faq-item.active .faq-icon {
    z-index: 1;
}

/* Override style for empty FAQ icon */
.faq-empty .empty-icon {
    background: rgba(255, 186, 8, 0.1);
    color: #ffb300;
    animation: empty-bulb-pulse 4s ease-in-out infinite;
}

.faq-empty .empty-icon i {
    animation: empty-bulb-flicker 5s linear infinite;
}

@keyframes empty-bulb-pulse {
    0%, 100% { box-shadow: 0 0 15px 5px rgba(255, 186, 8, 0.1); }
    50% { box-shadow: 0 0 20px 8px rgba(255, 186, 8, 0.2); }
}

@keyframes empty-bulb-flicker {
    0%, 100% { opacity: 0.8; text-shadow: 0 0 8px rgba(255, 186, 8, 0.5); }
    25% { opacity: 1; text-shadow: 0 0 15px rgba(255, 186, 8, 0.7); }
    30% { opacity: 0.6; text-shadow: 0 0 5px rgba(255, 186, 8, 0.3); }
    32% { opacity: 0.9; text-shadow: 0 0 10px rgba(255, 186, 8, 0.6); }
    35% { opacity: 0.7; text-shadow: 0 0 8px rgba(255, 186, 8, 0.5); }
    40% { opacity: 1; text-shadow: 0 0 15px rgba(255, 186, 8, 0.7); }
    60% { opacity: 0.8; text-shadow: 0 0 8px rgba(255, 186, 8, 0.5); }
    70% { opacity: 1; text-shadow: 0 0 12px rgba(255, 186, 8, 0.7); }
    72% { opacity: 0.7; text-shadow: 0 0 5px rgba(255, 186, 8, 0.3); }
    74% { opacity: 0.9; text-shadow: 0 0 10px rgba(255, 186, 8, 0.6); }
    80% { opacity: 0.8; text-shadow: 0 0 8px rgba(255, 186, 8, 0.5); }
}

/* --- Skeleton Loader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f9fa; /* Light background to match page */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.skeleton-container {
    width: 100%;
    max-width: 1300px;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Shine Animation */
@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-line,
.skeleton-image-mockup,
.skeleton-button,
.skeleton-icon,
.skeleton-feature-card {
    position: relative;
    overflow: hidden;
    background-color: #e2e8f0;
}

.skeleton-line::after,
.skeleton-image-mockup::after,
.skeleton-button::after,
.skeleton-icon::after,
.skeleton-feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shine 1.5s infinite linear;
}

/* Hero Section Skeleton */
.skeleton-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 0;
}

.skeleton-line {
    border-radius: 8px;
    margin-bottom: 12px;
}

.skeleton-line.title {
    width: 60%;
    height: 40px;
    margin: 0 auto 20px;
}

.skeleton-line.text {
    width: 80%;
    height: 16px;
    margin: 0 auto 10px;
}

.skeleton-line.text.short {
    width: 50%;
}

.skeleton-image-mockup {
    width: 100%;
    max-width: 400px;
    height: 350px;
    border-radius: 20px;
    margin: 40px auto;
}

.skeleton-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.skeleton-button {
    width: 160px;
    height: 50px;
    border-radius: 16px;
}

/* Features Section Skeleton */
.skeleton-features {
    padding: 80px 0;
}

.skeleton-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.skeleton-line.title-small {
    width: 40%;
    height: 32px;
    margin: 0 auto 16px;
}

.skeleton-line.text.medium {
    width: 60%;
    height: 16px;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.skeleton-feature-card {
    padding: 40px 30px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skeleton-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    margin-bottom: 28px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .skeleton-hero {
        padding: 60px 0;
    }
    .skeleton-image-mockup {
        height: 300px;
    }
    .skeleton-grid {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .skeleton-container {
        padding: 20px 15px;
    }
    .skeleton-line.title {
        width: 80%;
        height: 32px;
    }
    .skeleton-image-mockup {
        height: 250px;
    }
    .skeleton-button {
        width: 140px;
        height: 45px;
    }
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .skeleton-feature-card {
        padding: 30px 20px;
    }
    .skeleton-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
  .hero-content {
    margin-top: -80px !important;
  }
}

@media (min-width: 980px) {
  .hero-content {
    margin-top: 80px !important;
  }
}