/* ========================
   PROFESSIONAL ACCOUNTING WEBSITE
   CSS STYLESHEET - SLATE BLUE WITH GREEN ACCENTS
   Color Scheme: #607d8b (Main) | #4caf50 (Green Accent)
   ======================== */

:root {
  --primary-custom: #607d8b;
  --primary-dark: #455a64;
  --accent: #4caf50;
  --accent-light: #81c784;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --info-color: #06b6d4;
  --dark-bg: #1f2937;
  --light-bg: #f9fafb;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Cairo", "Noto Kufi Arabic", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #fff;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cairo", "Noto Kufi Arabic", sans-serif;
  font-weight: 700;
  color: var(--text-dark);
}

/* Prevent images from causing horizontal overflow */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent container overflow */
.container-lg {
  width: 100%;
  overflow-x: hidden;
}

/* ========================
   UTILITY CLASSES
   ======================== */

.bg-primary-custom {
  background: linear-gradient(
    135deg,
    var(--primary-custom) 0%,
    var(--primary-dark) 100%
  ) !important;
}

.text-primary-custom {
  color: var(--primary-custom) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.btn-primary-custom {
  background: linear-gradient(
    135deg,
    var(--primary-custom),
    var(--primary-dark)
  );
  border: none;
  color: #fff;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(39, 174, 96, 0.3);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #e67e22);
  border: none;
  color: #fff;
  transition: all 0.3s ease;
}

.btn-accent:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(243, 156, 18, 0.3);
}

.line-accent {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-custom), var(--accent));
  border-radius: 10px;
  margin-top: 1rem;
}

/* ========================
   NAVIGATION STYLES
   ======================== */

.navbar {
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar .navbar-logo {
  height: 45px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar .navbar-logo:hover {
  transform: scale(1.05);
}

.navbar .brand-text {
  font-size: 1.5rem;
  letter-spacing: 1px;
  font-weight: 800;
}

.navbar .nav-link {
  font-weight: 500;
  margin: 0 1rem;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  position: relative;
}

.navbar .nav-link:hover {
  color: var(--accent) !important;
  border-bottom-color: var(--accent);
  transform: translateY(-2px);
}

.navbar .nav-link.active {
  color: var(--accent) !important;
  border-bottom-color: var(--accent);
}

/* ========================
   HERO SECTION
   ======================== */

.hero-section {
  background: linear-gradient(
    135deg,
    var(--primary-custom) 0%,
    var(--primary-dark) 50%,
    #2196f3 100%
  );
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.hero-section > .container-lg {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: slideInUp 0.8s ease;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}

.hero-section img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.6s ease;
}

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

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================
   QUICK STATS SECTION
   ======================== */

.quick-stats {
  padding: 4rem 0;
}

.stat-box {
  padding: 2rem;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
  text-align: center;
}

.stat-box:hover {
  box-shadow: 0 20px 40px rgba(39, 174, 96, 0.15);
  transform: translateY(-10px);
  border-color: var(--primary-custom);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--primary-custom);
  transition: all 0.3s ease;
}

.stat-box:hover .stat-icon {
  color: var(--accent);
  transform: scale(1.2);
}

/* ========================
   SERVICES SECTION
   ======================== */

.services-section {
  padding: 80px 0;
  background: #fff;
}

.service-content {
  animation: fadeInUp 0.8s ease;
}

.features-list {
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.feature-item:hover {
  padding-right: 0.5rem;
  color: var(--primary-custom);
}

.feature-item i {
  font-size: 1.1rem;
  min-width: 24px;
}

.service-content .btn {
  transition: all 0.3s ease;
  text-decoration: none;
  border-radius: 8px;
  padding: 12px 30px;
  font-weight: 600;
}

.service-content .btn:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================
   ABOUT SECTION
   ======================== */

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

.about-section img {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(39, 174, 96, 0.15);
  transition: transform 0.6s ease;
}

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

.about-section h5 {
  color: var(--primary-custom);
  margin-bottom: 1.5rem;
}

.about-section .fa-star {
  color: var(--accent);
}

.about-section .fa-shield-alt {
  color: var(--primary-custom);
}

/* ========================
   WHY CHOOSE US SECTION
   ======================== */

.why-us-section {
  padding: 80px 0;
  background: #fff;
}

.feature-card {
  padding: 2rem;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
  box-shadow: 0 20px 40px rgba(39, 174, 96, 0.15);
  transform: translateY(-10px);
  border-color: var(--primary-custom);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-custom);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  color: var(--accent);
  transform: scale(1.2) rotate(10deg);
}

.feature-card h4 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========================
   TESTIMONIALS SECTION
   ======================== */

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

.testimonial-card {
  padding: 2rem;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
}

.testimonial-card:hover {
  box-shadow: 0 20px 40px rgba(39, 174, 96, 0.15);
  transform: translateY(-10px);
  border-color: var(--primary-custom);
}

.star-rating {
  color: var(--accent);
  font-size: 1.2rem;
  letter-spacing: 5px;
}

.testimonial-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  font-style: italic;
}

.testimonial-author h6 {
  color: var(--primary-custom);
}

/* ========================
   CTA SECTION
   ======================== */

.cta-section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: rgba(243, 156, 18, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.cta-section::after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  animation-delay: 2s;
}

.cta-section .container-lg {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: #fff;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(30px);
  }
}

/* ========================
   CONTACT SECTION
   ======================== */

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

.contact-info {
  padding: 2rem;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--border-color);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.contact-item:hover {
  padding-right: 0.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-custom),
    var(--primary-dark)
  );
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-left: 1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  background: linear-gradient(135deg, var(--accent), #e67e22);
  transform: scale(1.1) rotate(-5deg);
}

.contact-details h5 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-details p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.contact-details a {
  color: var(--primary-custom);
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--accent);
}

/* ========================
   CONTACT FORM
   ======================== */

.contact-form {
  padding: 2rem;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--border-color);
}

.contact-form .form-control,
.contact-form .form-select {
  border-radius: 10px;
  border: 1px solid var(--border-color);
  padding: 12px 15px;
  transition: all 0.3s ease;
  font-family: "Cairo", "Noto Kufi Arabic", sans-serif;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary-custom);
  box-shadow: 0 0 0 0.2rem rgba(39, 174, 96, 0.1);
}

.contact-form .form-label {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.contact-form .btn {
  border-radius: 10px;
  transition: all 0.3s ease;
  color: #fff;
  font-weight: 600;
}

.contact-form .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(39, 174, 96, 0.3);
}

.contact-form .btn:active {
  transform: translateY(-1px);
}

.alert {
  border-radius: 10px;
  border: none;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid var(--success-color);
  color: var(--success-color);
}

/* ========================
   FOOTER
   ======================== */

.footer {
  background: linear-gradient(135deg, var(--dark-bg), #1f2937);
  border-top: 1px solid rgba(39, 174, 96, 0.2);
  transition: all 0.3s ease;
}

.footer h5 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 35px;
  width: auto;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent);
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.social-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(
    135deg,
    var(--primary-custom),
    var(--primary-dark)
  );
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: linear-gradient(135deg, var(--accent), #e67e22);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
}

/* WhatsApp Icon Styling */
.social-icon .fab.fa-whatsapp,
.contact-icon .fab.fa-whatsapp {
  font-size: 1.4rem;
  transition: all 0.3s ease;
  color: #fff;
}

/* WhatsApp Social Icon */
.social-icon:has(.fab.fa-whatsapp) {
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3) !important;
}

.social-icon:hover:has(.fab.fa-whatsapp) {
  background: linear-gradient(135deg, #20ba5a, #0f7c67) !important;
  transform: translateY(-5px) scale(1.15);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5) !important;
  animation: whatsappBounce 0.6s ease;
}

.social-icon:hover .fab.fa-whatsapp {
  color: #fff;
}

/* WhatsApp Contact Icon */
.contact-icon .fab.fa-whatsapp {
  color: #fff;
  font-size: 1.8rem;
}

.contact-icon:has(.fab.fa-whatsapp) {
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
}

.contact-item:hover .contact-icon:has(.fab.fa-whatsapp) {
  background: linear-gradient(135deg, #20ba5a, #0f7c67) !important;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

@keyframes whatsappBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* ========================
   BACK TO TOP BUTTON
   ======================== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-custom),
    var(--primary-dark)
  );
  color: #fff;
  border: none;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(39, 174, 96, 0.4);
}

.back-to-top.show {
  display: flex;
}

/* ========================
   SCROLLBAR STYLES
   ======================== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-custom);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ========================
   ANIMATIONS
   ======================== */

.aos-init {
  opacity: 0;
}

.aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translate3d(0, 40px, 0);
}

[data-aos="fade-down"] {
  transform: translate3d(0, -40px, 0);
}

[data-aos="fade-left"] {
  transform: none !important;
}

[data-aos="fade-right"] {
  transform: none !important;
}

/* Force no transforms on all AOS elements */
[data-aos*="fade"],
[data-aos*="zoom"] {
  transform: none !important;
}

[data-aos="zoom-in"] {
  transform: scale3d(0.9, 0.9, 0.9);
}

/* ========================
   RESPONSIVE DESIGN
   ======================== */

@media (max-width: 768px) {
  /* Disable animations that cause overflow */
  [data-aos] {
    transform: none !important;
  }

  /* Prevent all overflow */
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    max-width: 100%;
  }

  .col-lg-6,
  .col-md-3,
  [class*="col-"] {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  img {
    max-width: 100% !important;
    height: auto;
    width: auto;
  }

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

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-section {
    min-height: 80vh;
  }

  .service-content {
    margin-top: 2rem;
  }

  .navbar .nav-link {
    margin: 0.5rem 0;
    padding: 0.5rem 0;
  }

  .contact-form {
    margin-top: 2rem;
    padding: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .back-to-top {
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .about-section,
  .services-section,
  .why-us-section,
  .contact-section,
  .quick-stats {
    padding: 50px 0;
  }

  .cta-section {
    padding: 40px 0;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .footer {
    padding: 2rem 0;
  }

  .footer p {
    font-size: 0.85rem;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .contact-item {
    flex-direction: row;
  }

  .testimonial-card {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  /* Disable animations that cause overflow */
  [data-aos] {
    transform: none !important;
  }

  /* Prevent all overflow */
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    max-width: 100%;
  }

  .col-lg-6,
  .col-md-3,
  [class*="col-"] {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  /* Prevent overflow on mobile */
  .container-lg {
    padding: 0 1rem;
  }

  img {
    max-width: 100% !important;
    height: auto;
    width: auto;
  }

  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .display-5 {
    font-size: 1.5rem !important;
  }

  .display-4 {
    font-size: 1.3rem !important;
  }

  .lead {
    font-size: 1rem;
  }

  .navbar {
    padding: 0.75rem 0;
  }

  .navbar .brand-text {
    font-size: 1.2rem;
  }

  .navbar .navbar-logo {
    height: 35px;
  }

  .feature-card {
    padding: 1rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  .contact-icon {
    margin-left: 0;
    margin-bottom: 1rem;
  }

  .contact-form,
  .contact-info {
    padding: 1rem;
  }

  .cta-section {
    padding: 2rem 0;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .d-flex.gap-3 {
    flex-direction: column;
  }

  .d-flex.gap-3 .btn {
    width: 100%;
  }

  .stat-box {
    padding: 1.5rem;
  }

  .quick-stats .col-md-3 {
    min-width: 100%;
  }
}

/* ========================
   UTILITY CLASSES
   ======================== */

.text-gradient {
  background: linear-gradient(135deg, var(--primary-custom), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-lg {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

.rounded-3 {
  border-radius: 20px !important;
}

/* ========================
   PRINT STYLES
   ======================== */

@media print {
  .navbar,
  .footer,
  .back-to-top,
  .cta-section .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .hero-section {
    background: #fff;
    color: #000;
  }

  .hero-section::before {
    display: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
