/* Reset and Base Styles */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

body {
   font-family: 'Inter', sans-serif;
   background: linear-gradient(135deg, #f8f5f0 0%, #e8ddd4 100%);
   color: #2c3e2d;
   overflow-x: hidden;
   line-height: 1.6;
}

.container {
   max-width: 1400px;
   margin: 0 auto;
   padding: 0 2rem;
   position: relative;
}

/* Navigation Styles */
.navbar {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   z-index: 1000;
   background: rgba(248, 245, 240, 0.95);
   backdrop-filter: blur(10px);
   box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-content {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 1rem 0;
}

.nav-brand {
   display: flex;
   align-items: center;
   gap: 0.75rem;
   font-weight: 600;
   font-size: 1.25rem;
   color: #2c3e2d;
}

.logo-img {
   width: 40px;
   height: 40px;
   object-fit: contain;
   border-radius: 8px;
}

.brand-text {
   font-family: 'Playfair Display', serif;
   font-weight: 600;
}

.nav-links {
   display: flex;
   align-items: center;
   gap: 2.5rem;
}

.nav-link {
   text-decoration: none;
   color: #2c3e2d;
   font-weight: 500;
   font-size: 0.95rem;
   transition: all 0.3s ease;
   position: relative;
   padding: 0.5rem 0;
}

.nav-link:hover {
   color: #d4930e;
}

.nav-link::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 0;
   height: 2px;
   background: linear-gradient(90deg, #d4930e, #f4c430);
   transition: width 0.3s ease;
}

.nav-link:hover::after {
   width: 100%;
}

.try-beta-btn {
   background: linear-gradient(135deg, #2c3e2d 0%, #1a2b1e 100%);
   color: white;
   border: none;
   padding: 0.75rem 1.75rem;
   border-radius: 12px;
   font-weight: 500;
   cursor: pointer;
   transition: all 0.3s ease;
   box-shadow: 0 4px 15px rgba(44, 62, 45, 0.2);
   font-size: 0.95rem;
}

.try-beta-btn:hover {
   transform: translateY(-2px);
   box-shadow: 0 6px 25px rgba(44, 62, 45, 0.3);
}

.mobile-menu-btn {
   display: none;
   background: none;
   border: none;
   font-size: 1.5rem;
   color: #2c3e2d;
   cursor: pointer;
}

/* Hero Section */
.hero-section {
   padding: 8rem 0 4rem;
   position: relative;
   min-height: 100vh;
   display: flex;
   align-items: center;
}

.hero-content {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: center;
   width: 100%;
}

/* Text Content */
.text-content {
   position: relative;
   z-index: 2;
}

.islamic-ornament {
   margin-bottom: 2rem;
   position: relative;
}

.geometric-pattern {
   width: 60px;
   height: 60px;
   border: 3px solid #d4930e;
   border-radius: 50%;
   position: relative;
   opacity: 0.8;
}

.geometric-pattern::before {
   content: '';
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%) rotate(45deg);
   width: 30px;
   height: 30px;
   border: 2px solid #d4930e;
}

.geometric-pattern::after {
   content: '';
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 15px;
   height: 15px;
   background: #d4930e;
   border-radius: 50%;
}

.hero-title {
   font-family: 'Playfair Display', serif;
   font-size: 3.5rem;
   font-weight: 700;
   line-height: 1.1;
   margin-bottom: 1.5rem;
   color: #2c3e2d;
}

.highlight {
   color: #d4930e;
   position: relative;
}

.highlight::after {
   content: '';
   position: absolute;
   bottom: 5px;
   left: 0;
   right: 0;
   height: 3px;
   background: linear-gradient(90deg, rgba(212, 147, 14, 0.3), rgba(244, 196, 48, 0.3));
   border-radius: 2px;
}

.hero-description {
   font-size: 1.2rem;
   line-height: 1.7;
   color: #555;
   margin-bottom: 2.5rem;
   font-weight: 400;
}

.cta-button {
   background: linear-gradient(135deg, #2c3e2d 0%, #1a2b1e 100%);
   color: white;
   border: none;
   padding: 1rem 2.5rem;
   border-radius: 12px;
   font-size: 1.1rem;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.4s ease;
   position: relative;
   overflow: hidden;
   margin-bottom: 3rem;
   box-shadow: 0 6px 25px rgba(44, 62, 45, 0.25);
}

.cta-button:hover {
   transform: translateY(-3px);
   box-shadow: 0 10px 35px rgba(44, 62, 45, 0.35);
}

.button-glow {
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
   transition: left 0.6s ease;
}

.cta-button:hover .button-glow {
   left: 100%;
}

/* Wisdom Quote */
.wisdom-quote {
   position: relative;
   padding: 1.5rem;
   background: rgba(212, 147, 14, 0.05);
   border-left: 4px solid #d4930e;
   border-radius: 8px;
   margin-top: 2rem;
}

.quote-mark {
   font-size: 3rem;
   color: #d4930e;
   font-family: 'Playfair Display', serif;
   position: absolute;
   top: -10px;
   left: 10px;
   opacity: 0.7;
}

.quote-text {
   font-style: italic;
   font-size: 1rem;
   line-height: 1.6;
   color: #2c3e2d;
   margin-bottom: 0.5rem;
   margin-left: 2rem;
}

.quote-source {
   font-size: 0.9rem;
   color: #666;
   font-weight: 500;
   text-align: right;
}

/* Mosque Visual */
.mosque-visual {
   position: relative;
   display: flex;
   justify-content: center;
   align-items: center;
}

.mosque-container {
   position: relative;
   width: 100%;
   height: 500px;
   display: flex;
   justify-content: center;
   align-items: center;
}

.background-glow {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 400px;
   height: 400px;
   background: radial-gradient(circle, rgba(212, 147, 14, 0.1) 0%, transparent 70%);
   border-radius: 50%;
   animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
   0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
   50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.mosque-image-wrapper {
   position: relative;
   z-index: 2;
   display: flex;
   justify-content: center;
   align-items: center;
   width: 100%;
   height: 100%;
}

.mosque-img {
   max-width: 100%;
   max-height: 450px;
   width: auto;
   height: auto;
   object-fit: contain;
   filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.1));
   transition: all 0.4s ease;
}

.mosque-img:hover {
   transform: scale(1.02);
   filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* Image Fade Effect */
.image-fade {
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   height: 50px;
   background: linear-gradient(to top, rgba(248, 245, 240, 0.8), transparent);
   pointer-events: none;
   z-index: 3;
}

/* Floating Elements */
.floating-elements {
   position: absolute;
   width: 100%;
   height: 100%;
   pointer-events: none;
}

.star, .moon {
   position: absolute;
   color: #d4930e;
   font-size: 1.2rem;
   animation: float 6s ease-in-out infinite;
}

.star-1 {
   top: 10%;
   left: 10%;
   animation-delay: 0s;
}

.star-2 {
   top: 20%;
   right: 15%;
   animation-delay: 2s;
}

.star-3 {
   bottom: 25%;
   left: 20%;
   animation-delay: 4s;
}

.moon {
   top: 5%;
   right: 5%;
   font-size: 1.8rem;
   animation-delay: 1s;
}

@keyframes float {
   0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
   50% { transform: translateY(-10px) rotate(5deg); opacity: 1; }
}

/* Section Shared Styles */
.section-header {
   text-align: center;
   margin-bottom: 4rem;
   position: relative;
}

.section-ornament {
   display: flex;
   justify-content: center;
   margin-bottom: 2.5rem;
}

.section-title {
   font-family: 'Playfair Display', serif;
   font-size: 2.8rem;
   font-weight: 700;
   line-height: 1.3;
   color: #2c3e2d;
   margin-bottom: 1.5rem;
}

.highlight-green {
   color: #2d5a3d;
   background: linear-gradient(135deg, #4a9960, #2d5a3d);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
   position: relative;
}

.section-description {
   font-size: 1.1rem;
   line-height: 1.6;
   color: #666;
   max-width: 700px;
   margin: 0 auto;
}

/* Features Section */
.features-section {
   padding: 6rem 0;
   background: rgba(255, 255, 255, 0.5);
   position: relative;
}

.islamic-geometric {
   position: relative;
   width: 120px;
   height: 120px;
   animation: gentlePulse 6s ease-in-out infinite;
}

.geometric-svg {
   width: 100%;
   height: 100%;
   filter: drop-shadow(0 4px 15px rgba(212, 147, 14, 0.2));
}

.rotating-border {
   animation: rotate 20s linear infinite;
   transform-origin: center;
}

@keyframes rotate {
   0% { transform: rotate(0deg); }
   100% { transform: rotate(360deg); }
}

@keyframes gentlePulse {
   0%, 100% { transform: scale(1); opacity: 0.8; }
   50% { transform: scale(1.05); opacity: 1; }
}

.features-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
   gap: 2.5rem;
   margin-bottom: 4rem;
}

.feature-card {
   background: rgba(255, 255, 255, 0.8);
   backdrop-filter: blur(10px);
   border-radius: 20px;
   padding: 2.5rem;
   position: relative;
   transition: all 0.4s ease;
   border: 1px solid rgba(212, 147, 14, 0.1);
   box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
   overflow: hidden;
}

.feature-card:hover {
   transform: translateY(-10px);
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
   border-color: rgba(212, 147, 14, 0.3);
}

.feature-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 4px;
   background: linear-gradient(90deg, #d4930e, #f4c430, #2d5a3d);
   opacity: 0;
   transition: opacity 0.4s ease;
}

.feature-card:hover::before {
   opacity: 1;
}

/* Feature Icons */
.feature-icon {
   width: 80px;
   height: 80px;
   border-radius: 20px;
   display: flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 2rem;
   position: relative;
   overflow: hidden;
   transition: all 0.4s ease;
   animation: gentleFloat 4s ease-in-out infinite;
}

.feature-icon:hover {
   transform: scale(1.1);
}

.green-icon {
   background: linear-gradient(135deg, #4a9960, #2d5a3d);
   box-shadow: 0 8px 25px rgba(74, 153, 96, 0.3);
}

.gold-icon {
   background: linear-gradient(135deg, #f4c430, #d4930e);
   box-shadow: 0 8px 25px rgba(212, 147, 14, 0.3);
}

.dark-icon {
   background: linear-gradient(135deg, #2c3e2d, #1a2b1e);
   box-shadow: 0 8px 25px rgba(44, 62, 45, 0.3);
}

.icon-svg {
   width: 32px;
   height: 32px;
   color: white;
   transition: all 0.3s ease;
}

.feature-icon:hover .icon-svg {
   transform: scale(1.1);
}

@keyframes gentleFloat {
   0%, 100% { transform: translateY(0px); }
   50% { transform: translateY(-3px); }
}

.feature-card:nth-child(1) .feature-icon {
   animation-delay: 0s;
}

.feature-card:nth-child(2) .feature-icon {
   animation-delay: 1.5s;
}

.feature-card:nth-child(3) .feature-icon {
   animation-delay: 3s;
}

/* Feature Content */
.feature-title {
   font-family: 'Playfair Display', serif;
   font-size: 1.5rem;
   font-weight: 600;
   color: #2c3e2d;
   margin-bottom: 1rem;
   line-height: 1.3;
}

.feature-description {
   font-size: 1rem;
   line-height: 1.6;
   color: #666;
   margin-bottom: 1.5rem;
}

/* Feature Tags */
.feature-tags {
   display: flex;
   gap: 0.5rem;
   margin-bottom: 1rem;
   flex-wrap: wrap;
}

.tag {
   background: rgba(212, 147, 14, 0.1);
   color: #d4930e;
   padding: 0.4rem 0.8rem;
   border-radius: 20px;
   font-size: 0.85rem;
   font-weight: 500;
   border: 1px solid rgba(212, 147, 14, 0.2);
}

/* Scholar Badges */
.scholar-badges {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   margin-bottom: 1rem;
   flex-wrap: wrap;
}

.scholar-badge {
   width: 32px;
   height: 32px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   font-weight: 600;
   font-size: 0.9rem;
}

.scholar-badge.green {
   background: linear-gradient(135deg, #4a9960, #2d5a3d);
}

.scholar-badge.gold {
   background: linear-gradient(135deg, #f4c430, #d4930e);
}

.scholar-badge.teal {
   background: linear-gradient(135deg, #20b2aa, #008080);
}

.scholar-text {
   font-size: 0.9rem;
   color: #666;
   font-weight: 500;
}

/* Implementation Steps */
.implementation-steps {
   margin-bottom: 1rem;
}

.step-indicator {
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

.step-number {
   width: 24px;
   height: 24px;
   background: linear-gradient(135deg, #4a9960, #2d5a3d);
   color: white;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 0.8rem;
   font-weight: 600;
}

.step-text {
   font-size: 0.9rem;
   color: #666;
   font-weight: 500;
}

/* Features Footer */
.features-footer {
   text-align: center;
   padding-top: 3rem;
   border-top: 1px solid rgba(212, 147, 14, 0.2);
}

.trust-indicators {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
   gap: 2rem;
   max-width: 800px;
   margin: 0 auto;
}

.trust-item {
   text-align: center;
}

.trust-number {
   display: block;
   font-family: 'Playfair Display', serif;
   font-size: 2.5rem;
   font-weight: 700;
   color: #d4930e;
   margin-bottom: 0.5rem;
}

.trust-label {
   font-size: 1rem;
   color: #666;
   font-weight: 500;
}

/* How It Works Section */
.how-it-works-section {
   padding: 6rem 0;
   background: linear-gradient(135deg, #f8f5f0 0%, #e8ddd4 100%);
}

.crescent-star {
   position: relative;
   width: 100px;
   height: 100px;
   display: flex;
   align-items: center;
   justify-content: center;
}

.crescent {
   font-size: 3rem;
   color: #d4930e;
   animation: gentleRotate 8s ease-in-out infinite;
}

.star-around {
   position: absolute;
   top: 10px;
   right: 10px;
   font-size: 1.5rem;
   color: #2d5a3d;
   animation: twinkle 3s ease-in-out infinite;
}

@keyframes gentleRotate {
   0%, 100% { transform: rotate(0deg); }
   50% { transform: rotate(10deg); }
}

@keyframes twinkle {
   0%, 100% { opacity: 0.5; transform: scale(1); }
   50% { opacity: 1; transform: scale(1.2); }
}

.steps-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 3rem;
   margin-bottom: 4rem;
}

.step-card {
   text-align: center;
   padding: 2rem;
   background: rgba(255, 255, 255, 0.7);
   border-radius: 20px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
   transition: all 0.3s ease;
   position: relative;
   overflow: hidden;
}

.step-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.step-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 3px;
   background: linear-gradient(90deg, #d4930e, #f4c430);
   opacity: 0;
   transition: opacity 0.3s ease;
}

.step-card:hover::before {
   opacity: 1;
}

.step-number {
   width: 60px;
   height: 60px;
   background: linear-gradient(135deg, #2c3e2d, #1a2b1e);
   color: white;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto 1.5rem;
   font-size: 1.5rem;
   font-weight: 700;
   box-shadow: 0 8px 25px rgba(44, 62, 45, 0.3);
}

.step-icon {
   width: 50px;
   height: 50px;
   margin: 0 auto 1.5rem;
   color: #d4930e;
}

.step-icon svg {
   width: 100%;
   height: 100%;
}

.step-title {
   font-family: 'Playfair Display', serif;
   font-size: 1.3rem;
   font-weight: 600;
   color: #2c3e2d;
   margin-bottom: 1rem;
}

.step-description {
   color: #666;
   line-height: 1.6;
}

/* Example Response */
.example-response {
   max-width: 800px;
   margin: 0 auto;
   background: rgba(255, 255, 255, 0.9);
   border-radius: 20px;
   box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
   overflow: hidden;
}

.example-header {
   text-align: center;
   padding: 2rem 2rem 1rem;
   border-bottom: 1px solid rgba(212, 147, 14, 0.2);
}

.example-header h3 {
   font-family: 'Playfair Display', serif;
   font-size: 1.5rem;
   color: #2c3e2d;
   margin-bottom: 0.5rem;
}

.example-header p {
   color: #666;
   font-size: 0.95rem;
}

.response-demo {
   padding: 0;
}

.user-question,
.ai-response {
   padding: 1.5rem 2rem;
}

.user-question {
   background: rgba(212, 147, 14, 0.05);
   border-left: 4px solid #d4930e;
}

.ai-response {
   background: rgba(45, 90, 61, 0.05);
   border-left: 4px solid #2d5a3d;
}

.message-header {
   display: flex;
   align-items: center;
   gap: 1rem;
   margin-bottom: 1rem;
}

.user-avatar,
.ai-avatar {
   width: 40px;
   height: 40px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.2rem;
   background: rgba(255, 255, 255, 0.8);
}

.message-info {
   display: flex;
   flex-direction: column;
}

.sender {
   font-weight: 600;
   color: #2c3e2d;
   font-size: 0.95rem;
}

.time {
   font-size: 0.8rem;
   color: #666;
}

.message-text {
   font-style: italic;
   color: #555;
   line-height: 1.6;
}

.message-content {
   line-height: 1.7;
   color: #2c3e2d;
}

.hadith-quote {
   background: rgba(255, 255, 255, 0.8);
   padding: 1.5rem;
   border-radius: 12px;
   border-left: 4px solid #d4930e;
   margin: 1.5rem 0;
}

.arabic-text {
   font-size: 1.2rem;
   line-height: 1.8;
   text-align: right;
   color: #2c3e2d;
   margin-bottom: 0.8rem;
   font-weight: 600;
}

.translation {
   font-style: italic;
   color: #555;
   margin-bottom: 1rem;
}

.source-info {
   display: flex;
   align-items: center;
   gap: 1rem;
   font-size: 0.9rem;
}

.grade {
   padding: 0.3rem 0.8rem;
   border-radius: 15px;
   font-weight: 600;
   font-size: 0.8rem;
}

.sahih {
   background: #22c55e;
   color: white;
}

.source {
   color: #666;
}

.practical-steps {
   margin-top: 1.5rem;
}

.practical-steps h4 {
   color: #2c3e2d;
   margin-bottom: 1rem;
   font-weight: 600;
}

.practical-steps ol {
   padding-left: 1.5rem;
   color: #555;
}

.practical-steps li {
   margin-bottom: 0.5rem;
   line-height: 1.6;
}

/* About Section */
.about-section {
   padding: 6rem 0;
   background: rgba(255, 255, 255, 0.7);
}

.about-content {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: center;
}

.about-text .section-ornament {
   justify-content: flex-start;
}

.info-icon {
   width: 80px;
   height: 80px;
   background: linear-gradient(135deg, #d4930e, #f4c430);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   box-shadow: 0 8px 25px rgba(212, 147, 14, 0.3);
}

.info-icon svg {
   width: 32px;
   height: 32px;
}

.about-description {
   font-size: 1.1rem;
   line-height: 1.7;
   color: #555;
   margin-bottom: 1.5rem;
}

.mission-points {
   display: flex;
   flex-direction: column;
   gap: 1rem;
   margin-top: 2rem;
}

.mission-point {
   display: flex;
   align-items: center;
   gap: 1rem;
   padding: 1rem;
   background: rgba(212, 147, 14, 0.05);
   border-radius: 12px;
   border-left: 3px solid #d4930e;
}

.point-icon {
   width: 30px;
   height: 30px;
   background: linear-gradient(135deg, #2d5a3d, #1a2b1e);
   color: white;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 0.9rem;
   font-weight: 600;
}

.about-visual {
   display: flex;
   justify-content: center;
   align-items: center;
}

.islamic-calligraphy {
   position: relative;
}

.calligraphy-circle {
   width: 300px;
   height: 300px;
   position: relative;
}

.calligraphy-svg {
   width: 100%;
   height: 100%;
   filter: drop-shadow(0 10px 30px rgba(212, 147, 14, 0.2));
}

.arabic-calligraphy {
   font-size: 1.8rem;
   font-weight: 700;
}

/* FAQ Section */
.faq-section {
   padding: 6rem 0;
   background: linear-gradient(135deg, #f8f5f0 0%, #e8ddd4 100%);
}

.question-icon {
   width: 100px;
   height: 100px;
   background: linear-gradient(135deg, #2d5a3d, #1a2b1e);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   box-shadow: 0 8px 25px rgba(45, 90, 61, 0.3);
   animation: gentlePulse 4s ease-in-out infinite;
}

.question-icon svg {
   width: 40px;
   height: 40px;
}

.faq-grid {
   display: flex;
   flex-direction: column;
   gap: 1rem;
   max-width: 800px;
   margin: 0 auto;
}

.faq-item {
   background: rgba(255, 255, 255, 0.8);
   border-radius: 15px;
   box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
   overflow: hidden;
   transition: all 0.3s ease;
}

.faq-item:hover {
   box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.faq-item.active {
   border-left: 4px solid #d4930e;
}

.faq-question {
   width: 100%;
   padding: 1.5rem 2rem;
   background: none;
   border: none;
   text-align: left;
   cursor: pointer;
   display: flex;
   justify-content: space-between;
   align-items: center;
   font-size: 1.1rem;
   font-weight: 600;
   color: #2c3e2d;
   transition: all 0.3s ease;
}

.faq-question:hover {
   background: rgba(212, 147, 14, 0.05);
}

.faq-icon {
   font-size: 1.5rem;
   color: #d4930e;
   transition: transform 0.3s ease;
   font-weight: 300;
}

.faq-item.active .faq-icon {
   transform: rotate(45deg);
}

.faq-answer {
   padding: 0 2rem 1.5rem;
   color: #666;
   line-height: 1.7;
   display: none;
}

.faq-item.active .faq-answer {
   display: block;
   animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
   from {
       opacity: 0;
       transform: translateY(-10px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

/* CTA Section */
.cta-section {
   padding: 6rem 0;
   background: linear-gradient(135deg, #2c3e2d 0%, #1a2b1e 100%);
   color: white;
   text-align: center;
   position: relative;
   overflow: hidden;
}

.cta-section::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4930e' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
   opacity: 0.3;
}

.cta-content {
   position: relative;
   z-index: 2;
}

.cta-ornament {
   margin-bottom: 2rem;
}

.star-pattern {
   font-size: 2rem;
   color: #d4930e;
   letter-spacing: 1rem;
   animation: twinkle 3s ease-in-out infinite;
}

.cta-title {
   font-family: 'Playfair Display', serif;
   font-size: 2.5rem;
   font-weight: 700;
   margin-bottom: 1.5rem;
   color: white;
}

.cta-description {
   font-size: 1.2rem;
   margin-bottom: 2.5rem;
   max-width: 600px;
   margin-left: auto;
   margin-right: auto;
   opacity: 0.9;
}

.cta-buttons {
   display: flex;
   justify-content: center;
   gap: 1rem;
   flex-wrap: wrap;
}

.primary-cta {
   background: linear-gradient(135deg, #d4930e, #f4c430);
   color: #2c3e2d;
   border: none;
   padding: 1rem 2rem;
   border-radius: 12px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
   box-shadow: 0 6px 25px rgba(212, 147, 14, 0.3);
}

.primary-cta:hover {
   transform: translateY(-3px);
   box-shadow: 0 10px 35px rgba(212, 147, 14, 0.4);
}

.secondary-cta {
   background: transparent;
   color: white;
   border: 2px solid white;
   padding: 1rem 2rem;
   border-radius: 12px;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
}

.secondary-cta:hover {
   background: white;
   color: #2c3e2d;
   transform: translateY(-2px);
}

/* Footer */
.footer {
   background: linear-gradient(135deg, #1a2b1e 0%, #0f1a11 100%);
   color: rgba(255, 255, 255, 0.8);
   padding: 3rem 0 1rem;
}

.footer-content {
   display: grid;
   grid-template-columns: 1fr 2fr;
   gap: 3rem;
   margin-bottom: 2rem;
}

.footer-brand {
   display: flex;
   flex-direction: column;
}

.footer-logo {
   display: flex;
   align-items: center;
   gap: 1rem;
   margin-bottom: 1rem;
}

.footer-logo-img {
   width: 40px;
   height: 40px;
   object-fit: contain;
   border-radius: 8px;
}

.footer-brand-text {
   font-family: 'Playfair Display', serif;
   font-size: 1.5rem;
   font-weight: 700;
   color: white;
}

.footer-tagline {
   color: rgba(212, 147, 14, 0.8);
   line-height: 1.6;
   max-width: 250px;
}

.footer-links {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
   gap: 2rem;
}

.footer-title {
   color: white;
   font-weight: 600;
   margin-bottom: 1rem;
   font-size: 1.1rem;
}

.footer-list {
   list-style: none;
   display: flex;
   flex-direction: column;
   gap: 0.8rem;
}

.footer-link {
   color: rgba(255, 255, 255, 0.7);
   text-decoration: none;
   transition: color 0.3s ease;
}

.footer-link:hover {
   color: #d4930e;
}

.social-links {
   display: flex;
   gap: 1rem;
   margin-bottom: 1rem;
}

.social-link {
   width: 40px;
   height: 40px;
   background: rgba(212, 147, 14, 0.2);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   text-decoration: none;
   font-size: 1.2rem;
   transition: all 0.3s ease;
}

.social-link:hover {
   background: #d4930e;
   transform: translateY(-2px);
}

.contact-email {
   color: rgba(212, 147, 14, 0.8);
   font-size: 0.95rem;
}

.footer-bottom {
   text-align: center;
   padding-top: 2rem;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   color: rgba(255, 255, 255, 0.6);
}

/* Animation Classes */
.animate-in {
   animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
   from {
       opacity: 0;
       transform: translateY(30px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

/* Responsive Design */
@media (max-width: 1024px) {
   .hero-content,
   .about-content {
       grid-template-columns: 1fr;
       gap: 3rem;
       text-align: center;
   }
   
   .hero-title {
       font-size: 3rem;
   }
   
   .section-title {
       font-size: 2.3rem;
   }
   
   .mosque-container {
       height: 400px;
   }
   
   .mosque-img {
       max-height: 350px;
   }
   
   .features-grid {
       grid-template-columns: 1fr;
       gap: 2rem;
   }
   
   .steps-grid {
       grid-template-columns: 1fr;
       gap: 2rem;
   }
}

@media (max-width: 768px) {
   .container {
       padding: 0 1rem;
   }
   
   .nav-links {
       position: fixed;
       top: 70px;
       left: 0;
       right: 0;
       background: rgba(248, 245, 240, 0.98);
       backdrop-filter: blur(20px);
       flex-direction: column;
       padding: 2rem;
       gap: 1.5rem;
       transform: translateY(-100%);
       transition: transform 0.3s ease;
       box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
   }
   
   .nav-links.active {
       transform: translateY(0);
   }
   
   .mobile-menu-btn {
       display: block;
   }
   
   .hero-section {
       padding: 6rem 0 2rem;
   }
   
   .hero-title {
       font-size: 2.5rem;
   }
   
   .hero-description {
       font-size: 1.1rem;
   }
   
   .mosque-container {
       height: 350px;
   }
   
   .mosque-img {
       max-height: 300px;
   }
   
   .section-title {
       font-size: 2rem;
   }
   
   .section-description {
       font-size: 1rem;
       padding: 0 1rem;
   }
   
   .feature-card {
       padding: 2rem;
   }
   
   .trust-indicators {
       grid-template-columns: 1fr;
       gap: 1.5rem;
   }
   
   .trust-number {
       font-size: 2rem;
   }
   
   .cta-title {
       font-size: 2rem;
   }
   
   .cta-buttons {
       flex-direction: column;
       align-items: center;
   }
   
   .primary-cta,
   .secondary-cta {
       width: 100%;
       max-width: 300px;
   }
   
   .footer-content {
       grid-template-columns: 1fr;
       gap: 2rem;
   }
   
   .footer-links {
       grid-template-columns: repeat(2, 1fr);
   }
}

@media (max-width: 480px) {
   .navbar .container {
       padding: 0 1rem;
   }
   
   .hero-section {
       padding: 5rem 0 2rem;
   }
   
   .hero-title {
       font-size: 2rem;
   }
   
   .hero-description {
       font-size: 1rem;
   }
   
   .mosque-container {
       height: 300px;
   }
   
   .mosque-img {
       max-height: 250px;
   }
   
   .wisdom-quote {
       padding: 1rem;
       margin-top: 1.5rem;
   }
   
   .quote-text {
       font-size: 0.9rem;
       margin-left: 1.5rem;
   }
   
   .section-title {
       font-size: 1.8rem;
       line-height: 1.2;
   }
   
   .feature-card {
       padding: 1.5rem;
   }
   
   .feature-icon {
       width: 60px;
       height: 60px;
   }
   
   .icon-svg {
       width: 24px;
       height: 24px;
   }
   
   .feature-tags {
       flex-wrap: wrap;
   }
   
   .step-card {
       padding: 1.5rem;
   }
   
   .example-response {
       margin: 0 1rem;
   }
   
   .user-question,
   .ai-response {
       padding: 1rem;
   }
   
   .hadith-quote {
       padding: 1rem;
   }
   
   .arabic-text {
       font-size: 1rem;
   }
   
   .faq-question {
       padding: 1rem;
       font-size: 1rem;
   }
   
   .faq-answer {
       padding: 0 1rem 1rem;
   }
   
   .about-text .section-ornament {
       justify-content: center;
   }
   
   .islamic-geometric,
   .calligraphy-circle {
       width: 200px;
       height: 200px;
   }
   
   .footer-links {
       grid-template-columns: 1fr;
       text-align: center;
   }
   
   .social-links {
       justify-content: center;
   }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
   .feature-card,
   .step-card,
   .faq-item {
       border: 2px solid #2c3e2d;
   }
   
   .feature-icon,
   .step-number {
       border: 2px solid white;
   }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
   *,
   *::before,
   *::after {
       animation-duration: 0.01ms !important;
       animation-iteration-count: 1 !important;
       transition-duration: 0.01ms !important;
   }
}

/* Quran Quote Styling */
.quran-quote {
    background: rgba(45, 90, 61, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #2d5a3d;
    margin: 1.5rem 0;
}

.quran-quote .arabic-text {
    color: #2d5a3d;
    font-weight: 700;
}

.grade.quran {
    background: #2d5a3d;
    color: white;
}

/* Enhanced Hadith Quote for distinction */
.hadith-quote {
    background: rgba(212, 147, 14, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #d4930e;
    margin: 1.5rem 0;
}

.hadith-quote .arabic-text {
    color: #d4930e;
    font-weight: 700;
}

/* Improved practical steps */
.practical-steps ol {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.practical-steps li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    position: relative;
    padding-left: 0.5rem;
}

/* Step icon improvements */
.step-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    color: #d4930e;
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    color: #2d5a3d;
    transform: scale(1.1);
}

/* Tafsir Section Styling */
.tafsir-section,
.hadith-explanation {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(45, 90, 61, 0.2);
}

.tafsir-header,
.explanation-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(45, 90, 61, 0.2);
}

.tafsir-icon,
.explanation-icon {
    font-size: 1.2rem;
}

.tafsir-header h5,
.explanation-header h5 {
    font-family: 'Playfair Display', serif;
    color: #2d5a3d;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Tafsir Content */
.tafsir-content,
.explanation-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tafsir-quote {
    background: rgba(45, 90, 61, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #2d5a3d;
    position: relative;
}

.tafsir-quote p {
    margin-bottom: 0.8rem;
    color: #2c3e2d;
    line-height: 1.7;
    font-size: 0.95rem;
}

.tafsir-source {
    font-size: 0.85rem;
    color: #2d5a3d;
    font-weight: 600;
    font-style: italic;
}

/* Hadith Explanation Specific Styling */
.hadith-explanation {
    border: 1px solid rgba(212, 147, 14, 0.2);
}

.hadith-explanation .explanation-header {
    border-bottom-color: rgba(212, 147, 14, 0.2);
}

.hadith-explanation .explanation-header h5 {
    color: #d4930e;
}

.explanation-content p {
    color: #2c3e2d;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Wisdom Note */
.wisdom-note {
    background: rgba(212, 147, 14, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #d4930e;
}

.wisdom-note p {
    margin: 0;
    color: #2c3e2d;
    font-size: 0.95rem;
}

/* Key Lesson */
.key-lesson {
    background: rgba(45, 90, 61, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #2d5a3d;
}

.key-lesson p {
    margin: 0;
    color: #2d5a3d;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Response Summary */
.response-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(212, 147, 14, 0.1), rgba(45, 90, 61, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(212, 147, 14, 0.3);
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.summary-icon {
    font-size: 1.3rem;
}

.summary-header h5 {
    font-family: 'Playfair Display', serif;
    color: #2c3e2d;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.response-summary p {
    color: #2c3e2d;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* Enhanced Arabic Text */
.arabic-text {
    font-size: 1.3rem !important;
    line-height: 2 !important;
    text-align: center !important;
    color: #2c3e2d !important;
    margin-bottom: 1rem !important;
    font-weight: 700 !important;
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

/* Translation Enhancement */
.translation {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    padding: 0.5rem;
}

/* Responsive Design for Tafsir */
@media (max-width: 768px) {
    .tafsir-section,
    .hadith-explanation,
    .response-summary {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .tafsir-header,
    .explanation-header,
    .summary-header {
        flex-direction: row;
        align-items: center;
    }
    
    .tafsir-quote {
        padding: 0.8rem;
    }
    
    .arabic-text {
        font-size: 1.1rem !important;
    }
    
    .tafsir-quote p,
    .explanation-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .tafsir-section,
    .hadith-explanation {
        padding: 0.8rem;
    }
    
    .tafsir-header h5,
    .explanation-header h5,
    .summary-header h5 {
        font-size: 1rem;
    }
    
    .arabic-text {
        font-size: 1rem !important;
        line-height: 1.8 !important;
    }
}