/*
Theme Name: Ar-Rahman Academy
Theme URI: http://www.ar-rahman-academy.com/
Author: Antigravity
Author URI: https://google.com
Description: A premium, high-converting educational WordPress theme for Ar-Rahman Academy.
Version: 1.0.3
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arrahman
*/

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

:root {
  --primary-dark: #0A2A1E;
  --primary-light: #1E5641;
  --accent-gold: #D4AF37;
  --accent-gold-hover: #b8962c;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-light: #666666;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Amiri', serif;
  font-weight: 700;
  color: var(--primary-dark);
}

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

ul {
  list-style: none;
}

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

/* Typography Utilities */
.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-white { color: var(--bg-white); }
.text-primary { color: var(--primary-dark); }

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

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

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-title .divider {
  width: 80px;
  height: 3px;
  background-color: var(--accent-gold);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
}

.btn-outline:hover {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background-color: var(--bg-white);
  padding: 15px 0;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Amiri', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bg-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar.scrolled .logo {
  color: var(--primary-dark);
}

.logo i {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--bg-white);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.navbar.scrolled .nav-links a {
  color: var(--primary-dark);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  color: var(--bg-white);
  cursor: pointer;
  background: none;
  border: none;
}

.navbar.scrolled .mobile-menu-btn {
  color: var(--primary-dark);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(10, 42, 30, 0.8), rgba(10, 42, 30, 0.9)), url('assets/images/hero_bg.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/images/pattern_bg.png') center/cover;
  opacity: 0.15;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  color: var(--bg-white);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: heroZoomIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes heroZoomIn {
  0% { opacity: 0; transform: translateY(30px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Native Failsafe Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-calligraphy-wrapper {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.hero-calligraphy-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
  animation: floatCalligraphy 6s ease-in-out infinite;
}

@keyframes floatCalligraphy {
  0% { transform: translateY(0px) rotate(0deg); filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4)); }
  50% { transform: translateY(-15px) rotate(3deg); filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.8)); }
  100% { transform: translateY(0px) rotate(0deg); filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4)); }
}

.bismillah-text {
  font-family: 'Amiri', serif;
  font-size: 2.8rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
  display: block;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  animation: pulseBismillah 4s infinite;
}

@keyframes pulseBismillah {
  0% { opacity: 0.85; transform: scale(1); text-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }
  50% { opacity: 1; transform: scale(1.05); text-shadow: 0 0 25px rgba(212, 175, 55, 0.8); }
  100% { opacity: 0.85; transform: scale(1); text-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }
}

.hero-academy-name {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--bg-white);
  font-family: 'Amiri', serif;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
  background: linear-gradient(to right, #FFFFFF, var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: #e0e0e0;
  margin-bottom: 25px;
  font-weight: 500;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #e0e0e0;
}

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

/* About Section */
.about {
  background-color: var(--bg-light);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-img img {
  width: 100%;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

.about-img:hover img {
  transform: scale(1.05);
}

.about-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent-gold);
  border-radius: 20px;
  transform: translate(15px, 15px);
  z-index: -1;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.feature-list {
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.feature-item i {
  color: var(--accent-gold);
  font-size: 1.2rem;
  background: rgba(212, 175, 55, 0.1);
  padding: 10px;
  border-radius: 50%;
}

/* Courses Section */
.courses {
  background-color: var(--bg-white);
  position: relative;
}

.courses::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/images/pattern_bg.png') center/cover;
  opacity: 0.03;
  pointer-events: none;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.course-card {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--primary-dark);
  z-index: -1;
  transition: var(--transition);
}

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

.course-card:hover::before {
  height: 100%;
}

.course-icon {
  font-size: 3rem;
  color: var(--primary-light);
  margin-bottom: 20px;
  transition: var(--transition);
}

.course-card:hover .course-icon,
.course-card:hover h4,
.course-card:hover p {
  color: var(--bg-white);
}

.course-card h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  transition: var(--transition);
}

.course-card p {
  color: var(--text-light);
  margin-bottom: 25px;
  transition: var(--transition);
}

.course-card .btn-outline {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.course-card:hover .btn-outline {
  border-color: var(--accent-gold);
  background-color: var(--accent-gold);
  color: var(--primary-dark);
}

/* Why Choose Us Section */
.why-us {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  position: relative;
}

.why-us .section-title h2 {
  color: var(--bg-white);
}

.why-us .section-title p {
  color: #ccc;
}

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

.why-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-gold);
}

.why-card i {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.why-card h4 {
  color: var(--bg-white);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.why-card p {
  color: #ddd;
  font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--bg-light);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-item {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: none;
  animation: fadeEffect 1s;
}

.testimonial-item.active {
  display: block;
}

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

.quote-icon {
  font-size: 2.5rem;
  color: rgba(212, 175, 55, 0.3);
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.testimonial-author h5 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.testimonial-author span {
  color: var(--accent-gold);
  font-size: 0.9rem;
}

.slider-dots {
  text-align: center;
  margin-top: 30px;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #ddd;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active, .dot:hover {
  background-color: var(--accent-gold);
}

/* Contact Section */
.contact {
  background-color: var(--bg-white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: var(--bg-white);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contact-info {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  padding: 50px;
  position: relative;
}

.contact-info h3 {
  color: var(--bg-white);
  font-size: 1.8rem;
  margin-bottom: 30px;
}

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

.info-item i {
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-top: 5px;
}

.info-item h5 {
  color: var(--bg-white);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.info-item p {
  color: #ccc;
}

.contact-form {
  padding: 50px;
}

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

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

textarea.form-control {
  height: 150px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
}

/* Map Section */
.map-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* Footer */
.footer {
  background-color: #051a12;
  color: #ccc;
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  color: var(--bg-white);
  font-size: 1.8rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand h3 i {
  color: var(--accent-gold);
}

.footer-brand p {
  margin-bottom: 20px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--bg-white);
  transition: var(--transition);
}

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

.footer-links h4 {
  color: var(--bg-white);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-gold);
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-quote {
  font-family: 'Amiri', serif;
  color: var(--accent-gold);
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: block;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: var(--transition);
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: white;
}

/* Responsive */
@media (max-width: 992px) {
  .about-grid, .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .about-img {
    order: -1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-academy-name {
    font-size: 3rem;
  }
  
  .bismillah-text {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-calligraphy-img {
    width: 120px;
    height: 120px;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links a {
    color: var(--primary-dark);
    font-size: 1.2rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .navbar.scrolled {
    padding: 10px 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
